Skip to content

Commit f741776

Browse files
committed
Add a description about NETWORK_ID
1 parent b93e252 commit f741776

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

server/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Run
3535

3636
Just run `codechain-agent-hub` in your shell.
3737
To safely communicate with the Dashboard, please set the `PASSPHRASE` environment variable. The Dashboard program should use the same passphrase.
38+
Also, you should set `NETWORK_ID` environment variable to print the network id in log messages.
3839

3940
When you are using the `PASSPHRASE` you should use SSL over the connection. If you don't use the SSL, the `PASSPHRASE` is open to the internet.
4041

server/src/daily_reporter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pub fn start(
1313
db_service: DBServiceSender,
1414
agent_service: AgentServiceSender,
1515
) -> thread::JoinHandle<()> {
16-
let network_id = std::env::var("NETWORK_ID").unwrap();
16+
let network_id = std::env::var("NETWORK_ID").expect("NETWORK_ID environment variable is needed");
1717

1818
thread::Builder::new()
1919
.name("daily reporter".to_string())

0 commit comments

Comments
 (0)