-
Notifications
You must be signed in to change notification settings - Fork 918
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Non-Inclusive Language] Replace isDevClusterMaster with isDevClusterManager #1719
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ | |
*/ | ||
|
||
import chalk from 'chalk'; | ||
import { isMaster } from 'cluster'; | ||
import { isMaster as isClusterManager } from 'cluster'; | ||
import { CliArgs, Env, RawConfigService } from './config'; | ||
import { Root } from './root'; | ||
import { CriticalError } from './errors'; | ||
|
@@ -82,7 +82,8 @@ export async function bootstrap({ | |
const env = Env.createDefault(REPO_ROOT, { | ||
configs, | ||
cliArgs, | ||
isDevClusterMaster: isMaster && cliArgs.dev && features.isClusterModeSupported, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is the update to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated! I've added alias to the 'isMaster' referenced from @types/node modules. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need to change or use alias for Reference: https://nodejs.org/docs/latest-v14.x/api/cluster.html#cluster_cluster_ismaster |
||
isDevClusterMaster: isClusterManager && cliArgs.dev && features.isClusterModeSupported, | ||
isDevClusterManager: isClusterManager && cliArgs.dev && features.isClusterModeSupported, | ||
}); | ||
|
||
const rawConfigService = new RawConfigService(env.configs, applyConfigOverrides); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line 62 says false but this is expected to be truthy this is because
isDevClusterMaster
is true then we expectisDevClusterManager
to be true right? That's great. Can we have a test for the invert. LikeisDevClusterManager
is set to true. What's the expected behavior?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated