File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 35
35
36
36
Just run ` codechain-agent-hub ` in your shell.
37
37
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.
38
39
39
40
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.
40
41
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ pub fn start(
13
13
db_service : DBServiceSender ,
14
14
agent_service : AgentServiceSender ,
15
15
) -> 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" ) ;
17
17
18
18
thread:: Builder :: new ( )
19
19
. name ( "daily reporter" . to_string ( ) )
You can’t perform that action at this time.
0 commit comments