Skip to content

Commit

Permalink
fix to pass CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kanarus committed Aug 23, 2024
1 parent d93da44 commit a693f7a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ tasks:
cmds:
- cd benches && cargo bench --features DEBUG --no-run
- cd benches && cargo check
- cf benches_glommio && cargo check
- cd benches_glommio && cargo check

bench:
dir: benches
Expand Down
6 changes: 6 additions & 0 deletions ohkami/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,12 @@ pub mod utils {
}
}

#[cfg(feature="rt_glommio")]
/* for fang::builtin::timeout::Timeout::Proc::bite to return Send Future */
/* SAFETY: proc and sleep are executed on the same thread in rt_glommio */
/* ( glommio::timer::sleep itself returns not-Send Future because it's not needed due to the architecture ) */
unsafe impl<Sleep, Proc> Send for Timeout<Sleep, Proc> {}

Timeout { proc, sleep: crate::__rt__::sleep(duration) }
}

Expand Down
2 changes: 1 addition & 1 deletion ohkami/src/ohkami/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ impl Ohkami {
/// ---
///
/// *example_glommio.rs*
/// ```no_run
/// ```ignore
/// use ohkami::prelude::*;
/// use ohkami::utils::num_cpus;
/// use glommio::{LocalExecutorPoolBuilder, PoolPlacement, CpuSet};
Expand Down

0 comments on commit a693f7a

Please sign in to comment.