-
Notifications
You must be signed in to change notification settings - Fork 144
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
Adding RPC Configuration #531
Conversation
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.
Ideally, the flags should be something like
--rpc=false
to disable rpc (on by default)
--port="1234"
to set the port
Anyone have opinions or suggestions for anything within this scope that should be added?
forest/src/daemon.rs
Outdated
info!("Using {} as RPC port", rpc_port); | ||
info!("Using {} as RPC listen", rpc_listen); | ||
start_rpc(db_rpc, rpc_port, rpc_listen).await; | ||
let rpc_listen = "127.0.0.1:".to_string() + &config.rpc_port; |
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.
let rpc_listen = "127.0.0.1:".to_string() + &config.rpc_port; | |
let rpc_listen = format!("127.0.0.1:{}", &config.rpc_port); |
optional: just a bit more readable
forest/src/daemon.rs
Outdated
@@ -35,7 +35,7 @@ pub(super) async fn start(config: Config) { | |||
}); | |||
|
|||
// Initialize database | |||
let mut db = RocksDb::new(config.data_dir + "/db"); | |||
let mut db = RocksDb::new(config.data_dir.clone() + "/db"); |
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.
let mut db = RocksDb::new(config.data_dir.clone() + "/db"); | |
let mut db = RocksDb::new(config.data_dir + "/db"); |
nothing you added should change this, should it?
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.
I was doing some dumb stuff earlier, before this set up i kept running into partial move issues. I thought my only way out of it was to clone stuff, should've changed this back when i started doing it this way.
Summary of changes
Notable changes introduced in this pull request:
Reference issue to close (if applicable)
Closes #474
Closes #475
Other information and links