Skip to content

Commit

Permalink
Use serverCtx for consistency.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Fernández committed May 5, 2018
1 parent c17c783 commit 53cd71f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benchmark/tls/secure-pair.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ function main({ dur, size, securing }) {
}

function securePair(conn, client) {
const serverCtxt = tls.createSecureContext(options);
const serverPair = tls.createSecurePair(serverCtxt, true, true, false);
const serverCtx = tls.createSecureContext(options);
const serverPair = tls.createSecurePair(serverCtx, true, true, false);
conn.pipe(serverPair.encrypted);
serverPair.encrypted.pipe(conn);
serverPair.on('error', (error) => {
Expand Down

0 comments on commit 53cd71f

Please sign in to comment.