-
Notifications
You must be signed in to change notification settings - Fork 55
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
feat!: use a simple network id to differentiate between network #2508
Conversation
pub static ref IDENTIFY_NODE_VERSION_STR: String = | ||
format!( | ||
"safe/node/{}/{}", | ||
pub static ref IDENTIFY_NODE_VERSION_STR: RwLock<String> = |
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.
Why need the extra RwLock
?
same to others
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.
Because the network_id
is now passed as a runtime argument, using --network-id
and not an env var that we can fetch here..
5a587cc
to
31fbdb5
Compare
31fbdb5
to
e74bfe5
Compare
e74bfe5
to
aae44cb
Compare
let node_data_dir = temp_dir.child("data"); | ||
node_data_dir.create_dir_all()?; | ||
let node_logs_dir = temp_dir.child("logs"); | ||
node_logs_dir.create_dir_all()?; |
Check notice
Code scanning / devskim
Accessing localhost could indicate debug code, or could hinder scaling. Note test
OsString::from("--root-dir"), | ||
OsString::from( | ||
node_data_dir | ||
.to_path_buf() |
Check notice
Code scanning / devskim
Accessing localhost could indicate debug code, or could hinder scaling. Note test
enable_metrics_server: false, | ||
env_variables: None, | ||
home_network: false, | ||
log_format: None, |
Check notice
Code scanning / devskim
Accessing localhost could indicate debug code, or could hinder scaling. Note test
mock_service_control | ||
.expect_get_process_pid() | ||
.with(eq(current_node_bin.to_path_buf().clone())) | ||
.times(1) |
Check notice
Code scanning / devskim
Accessing localhost could indicate debug code, or could hinder scaling. Note
No description provided.