Skip to content

Commit 0c368be

Browse files
committed
Remove copy-pasted Cors enum with upstream re-export
1 parent bc45901 commit 0c368be

File tree

5 files changed

+6
-72
lines changed

5 files changed

+6
-72
lines changed

crates/subspace-node/src/commands/run.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
mod consensus;
22
mod domain;
33
mod shared;
4-
mod substrate;
54

65
use crate::commands::run::consensus::{
76
create_consensus_chain_configuration, ConsensusChainConfiguration, ConsensusChainOptions,

crates/subspace-node/src/commands/run/consensus.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
use crate::commands::run::shared::RpcOptions;
2-
use crate::commands::run::substrate::Cors;
32
use crate::{chain_spec, derive_pot_external_entropy, Error};
43
use clap::Parser;
54
use sc_cli::{
6-
generate_node_name, NodeKeyParams, NodeKeyType, PruningParams, RpcMethods, TelemetryParams,
7-
TransactionPoolParams, RPC_DEFAULT_PORT,
5+
generate_node_name, Cors, NodeKeyParams, NodeKeyType, PruningParams, RpcMethods,
6+
TelemetryParams, TransactionPoolParams, RPC_DEFAULT_PORT,
87
};
98
use sc_informant::OutputFormat;
109
use sc_network::config::{MultiaddrWithPeerId, NonReservedPeerMode, SetConfig};

crates/subspace-node/src/commands/run/domain.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use crate::commands::run::shared::RpcOptions;
2-
use crate::commands::run::substrate::Cors;
32
use crate::commands::shared::{store_key_in_keystore, KeystoreOptions};
43
use crate::Error;
54
use clap::Parser;
@@ -17,7 +16,9 @@ use evm_domain_runtime::{
1716
};
1817
use futures::StreamExt;
1918
use sc_chain_spec::{ChainType, Properties};
20-
use sc_cli::{KeystoreParams, PruningParams, RpcMethods, TransactionPoolParams, RPC_DEFAULT_PORT};
19+
use sc_cli::{
20+
Cors, KeystoreParams, PruningParams, RpcMethods, TransactionPoolParams, RPC_DEFAULT_PORT,
21+
};
2122
use sc_consensus_subspace::block_import::BlockImportingNotification;
2223
use sc_consensus_subspace::notification::SubspaceNotificationStream;
2324
use sc_consensus_subspace::slot_worker::NewSlotNotification;

crates/subspace-node/src/commands/run/shared.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
use crate::commands::run::substrate::Cors;
21
use clap::Parser;
3-
use sc_cli::{RpcMethods, RPC_DEFAULT_MAX_CONNECTIONS, RPC_DEFAULT_MAX_SUBS_PER_CONN};
2+
use sc_cli::{Cors, RpcMethods, RPC_DEFAULT_MAX_CONNECTIONS, RPC_DEFAULT_MAX_SUBS_PER_CONN};
43
use std::net::{IpAddr, Ipv4Addr, SocketAddr};
54

65
/// Options for RPC

crates/subspace-node/src/commands/run/substrate.rs

Lines changed: 0 additions & 64 deletions
This file was deleted.

0 commit comments

Comments
 (0)