Update main.rs
[noci]
This commit is contained in:
parent
e1c0177932
commit
89986ec0e0
@ -224,8 +224,14 @@ fn setup_log(init: &Option<String>) {
|
||||
|
||||
#[cfg(feature = "rpc")]
|
||||
fn setup_rpc_server(
|
||||
client: Arc<Client>, sync: Arc<EthSync>, secret_store: Arc<AccountService>, miner: Arc<Miner>,
|
||||
url: &str, cors_domain: &str, apis: Vec<&str>) -> Option<Arc<PanicHandler>> {
|
||||
client: Arc<Client>,
|
||||
sync: Arc<EthSync>,
|
||||
secret_store: Arc<AccountService>,
|
||||
miner: Arc<Miner>,
|
||||
url: &str,
|
||||
cors_domain: &str,
|
||||
apis: Vec<&str>
|
||||
) -> Option<Arc<PanicHandler>> {
|
||||
use rpc::v1::*;
|
||||
|
||||
let server = rpc::RpcServer::new();
|
||||
|
Loading…
Reference in New Issue
Block a user