Skip to content

Commit

Permalink
Merge pull request #263 from rustaceanrob/extern-tokio-1-13
Browse files Browse the repository at this point in the history
Export `tokio` and remove module exports for `mpsc` in client
  • Loading branch information
rustaceanrob authored Jan 14, 2025
2 parents 601f5b3 + aa151a7 commit f906dc8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/core/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ use bitcoin::Transaction;
use bitcoin::{block::Header, FeeRate};
use std::{collections::BTreeMap, ops::Range, time::Duration};
use tokio::sync::mpsc;
pub use tokio::sync::mpsc::Receiver;
use tokio::sync::mpsc::Sender;
pub use tokio::sync::mpsc::UnboundedReceiver;

use crate::{Event, Log, TrustedPeer, TxBroadcast};

Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ pub use bitcoin::{
Address, Block, BlockHash, FeeRate, Network, ScriptBuf, Transaction, Txid,
};

pub extern crate tokio;

/// A Bitcoin [`Transaction`] with additional context.
#[derive(Debug, Clone)]
#[allow(dead_code)]
Expand Down
6 changes: 2 additions & 4 deletions tests/core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@ use corepc_node::serde_json;
use corepc_node::{anyhow, exe_path};
use kyoto::{
chain::checkpoints::HeaderCheckpoint,
core::{
client::{Client, Receiver},
node::Node,
},
core::{client::Client, node::Node},
BlockHash, Event, Log, NodeState, ServiceFlags, SqliteHeaderDb, SqlitePeerDb, TrustedPeer,
};
use tokio::sync::mpsc::Receiver;
use tokio::sync::mpsc::UnboundedReceiver;

// Start the bitcoin daemon either through an environment variable or by download
Expand Down

0 comments on commit f906dc8

Please sign in to comment.