Skip to content

Commit

Permalink
re-introduce oneshot export for compat with UserPrimitives
Browse files Browse the repository at this point in the history
  • Loading branch information
mkolopanis committed Sep 7, 2023
1 parent 2bdac9a commit 52eb57b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions cfdp-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ pub mod pdu;

pub mod transaction;

// re-exported for convenience and compatibility with the Primitives.
pub use tokio::sync::oneshot;

// this import is necessary for the template macro in rstest_reuse as of v0.5.0
#[cfg(test)]
#[cfg_attr(test, allow(clippy::single_component_path_imports))]
Expand Down
2 changes: 1 addition & 1 deletion cfdp-daemon/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use error::DaemonResult;
use log::{error, info, warn};
use tokio::{select, task::JoinHandle, time::MissedTickBehavior};

// Re-exported for convenience
// Re-exported for convenience and compatibility.
pub use tokio::sync::{
mpsc::{channel, Receiver, Sender},
oneshot,
Expand Down

0 comments on commit 52eb57b

Please sign in to comment.