Skip to content

Commit

Permalink
fix conflict error
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyukang committed Nov 21, 2023
1 parent ff90769 commit d665457
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
1 change: 1 addition & 0 deletions rpc/src/module/subscription.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ pub trait SubscriptionRpc {
/// "jsonrpc": "2.0",
/// "result": "0xf3"
/// }
/// ```
///
/// Unsubscribe Request
///
Expand Down
6 changes: 1 addition & 5 deletions rpc/src/tests/mod.rs
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
use ckb_chain::chain::ChainController;
use ckb_chain_spec::consensus::Consensus;
use ckb_dao::DaoCalculator;
use ckb_jsonrpc_types::ScriptHashType;
use ckb_network::{Flags, NetworkService, NetworkState};
use ckb_reward_calculator::RewardCalculator;
use ckb_shared::{Shared, SharedBuilder, Snapshot};
use ckb_shared::{Shared, Snapshot};
use ckb_store::ChainStore;
use ckb_test_chain_utils::{always_success_cell, always_success_cellbase};
use ckb_types::{
core::{
cell::resolve_transaction, BlockBuilder, BlockView, HeaderView, TransactionBuilder,
TransactionView,
},
global::DATA_DIR,
h256,
packed::{CellInput, OutPoint},
prelude::*,
};
Expand Down
7 changes: 3 additions & 4 deletions rpc/src/tests/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ use ckb_chain::chain::ChainService;
use ckb_chain_spec::consensus::{Consensus, ConsensusBuilder};
use ckb_chain_spec::versionbits::{ActiveMode, Deployment, DeploymentPos};
use ckb_dao_utils::genesis_dao_data;
use ckb_launcher::SharedBuilder;
use ckb_network::{Flags, NetworkService, NetworkState};
use ckb_network_alert::alert_relayer::AlertRelayer;
use ckb_notify::NotifyService;
use ckb_shared::SharedBuilder;
use ckb_sync::SyncShared;
use serde_json::json;
use std::collections::HashMap;
Expand Down Expand Up @@ -94,12 +94,11 @@ pub(crate) fn setup_rpc_test_suite(height: u64, consensus: Option<Consensus>) ->
ChainService::new(shared.clone(), pack.take_proposal_table()).start::<&str>(None);

// Start network services
let temp_dir = tempfile::tempdir().expect("create tempdir failed");
let temp_dir = tempfile::tempdir().expect("create tmp_dir failed");

let temp_path = temp_dir.path().to_path_buf();
let network_controller = {
let network_config = NetworkConfig {
path: temp_path,
path: temp_dir.path().join("network").to_path_buf(),
ping_interval_secs: 1,
ping_timeout_secs: 1,
connect_outbound_interval_secs: 1,
Expand Down

0 comments on commit d665457

Please sign in to comment.