Skip to content

Commit 2ba08ac

Browse files
deokjinkimMoLow
authored andcommitted
benchmark: use cluster.isPrimary instead of cluster.isMaster
`cluster.isMaster` was deprecated. So need to use `cluster.isPrimary` for benchmark. Refs: #47981 PR-URL: #48002 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent ccd2795 commit 2ba08ac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

benchmark/cluster/echo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
const cluster = require('cluster');
4-
if (cluster.isMaster) {
4+
if (cluster.isPrimary) {
55
const common = require('../common.js');
66
const bench = common.createBenchmark(main, {
77
workers: [1],

benchmark/http/cluster.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const PORT = common.PORT;
44

55
const cluster = require('cluster');
66
let bench;
7-
if (cluster.isMaster) {
7+
if (cluster.isPrimary) {
88
bench = common.createBenchmark(main, {
99
// Unicode confuses ab on os x.
1010
type: ['bytes', 'buffer'],

0 commit comments

Comments
 (0)