Skip to content

Commit

Permalink
up cogo
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxiujia committed Jan 26, 2022
1 parent 8e984ae commit 5ae810b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ members = [

[package]
name = "fast_log"
version = "1.4.15"
version = "1.4.16"
description = "Rust async log High-performance asynchronous logging"
readme = "Readme.md"
authors = ["ce <[email protected]>"]
Expand Down
4 changes: 2 additions & 2 deletions src/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ use std::time::Duration;

/// if use cogo runtime
#[cfg(feature = "cogo")]
pub type Receiver<T> = cogo::std::sync::mpmc::Receiver<T>;
pub type Receiver<T> = cogo::std::sync::channel::Receiver<T>;
#[cfg(feature = "cogo")]
pub type Sender<T> = cogo::std::sync::mpmc::Sender<T>;
pub type Sender<T> = cogo::std::sync::channel::Sender<T>;

#[cfg(feature = "cogo")]
pub fn chan<T>() -> (Sender<T>, Receiver<T>) {
Expand Down

0 comments on commit 5ae810b

Please sign in to comment.