Skip to content

Commit 9f175e3

Browse files
authored
Fix buildc (#62)
* mio requires net feature * Doc comments required
1 parent 19fd269 commit 9f175e3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

msim-tokio/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,5 @@ tracing = "0.1"
6464
real_tokio = { git = "https://github.com/MystenLabs/tokio-msim-fork.git", rev = "7329bff6ee996d8df6cf810a9c2e59631ad5a2fb", package = "real_tokio", features = ["full"] }
6565
bytes = { version = "1.1" }
6666
futures = { version = "0.3.0", features = ["async-await"] }
67-
mio = { version = "0.8.1" }
67+
mio = { version = "0.8.1", features = ["net"] }
6868
libc = "0.2"

msim/src/sim/time/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ pub async fn advance(_duration: Duration) {
252252
unimplemented!("cannot advance clock in simulation - use sleep() instead");
253253
}
254254

255+
/// Supply tokio::time::pause() API (for compilation only - this method is meaningless inside the
256+
/// simulator).
255257
pub fn pause() {
256258
unimplemented!("cannot pause clock in simulation");
257259
}

0 commit comments

Comments
 (0)