diff options
author | Michael Dawson <mdawson@devrus.com> | 2020-12-11 00:53:44 +0300 |
---|---|---|
committer | Michael Dawson <mdawson@devrus.com> | 2021-01-05 23:41:45 +0300 |
commit | 15164cebcebfcad9822d3f065234a8c1511776a4 (patch) | |
tree | f9ce2f183ba5af0ff50e104d72af58dbbc40c943 /doc/api/dgram.md | |
parent | 3c49ee298fd52295f4cff301a739d43b3ecf0d24 (diff) |
lib,src: update cluster to use Parent
Doc deprecate isMaster and setupMaster in favor
of isPrimary and setupPrimary.
Signed-off-by: Michael Dawson <mdawson@devrus.com>
PR-URL: https://github.com/nodejs/node/pull/36478
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Beth Griggs <bgriggs@redhat.com>
Diffstat (limited to 'doc/api/dgram.md')
-rw-r--r-- | doc/api/dgram.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/dgram.md b/doc/api/dgram.md index b21ea069ba9..d3ed6a6f171 100644 --- a/doc/api/dgram.md +++ b/doc/api/dgram.md @@ -126,7 +126,7 @@ When sharing a UDP socket across multiple `cluster` workers, the ```js const cluster = require('cluster'); const dgram = require('dgram'); -if (cluster.isMaster) { +if (cluster.isPrimary) { cluster.fork(); // Works ok. cluster.fork(); // Fails with EADDRINUSE. } else { |