Skip to content

Commit

Permalink
deps: Use web-time instead of instant (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
oblique authored Jun 7, 2024
1 parent 24561a6 commit 5709e1b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 0.13.3

- Use `web-time` instead of `instant`.
See [PR 191](https://github.com/libp2p/rust-yamux/pull/191).

# 0.13.2

- Bound `Active`'s `pending_frames` to enforce backpressure.
Expand Down
2 changes: 1 addition & 1 deletion yamux/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ edition = "2021"

[dependencies]
futures = { version = "0.3.12", default-features = false, features = ["std", "executor"] }
instant = "0.1"
log = "0.4.8"
nohash-hasher = "0.2"
parking_lot = "0.12"
rand = "0.8.3"
static_assertions = "1"
pin-project = "1.1.0"
web-time = "1.1.0"

[dev-dependencies]
futures = { version = "0.3.12", default-features = false, features = ["executor"] }
Expand Down
2 changes: 1 addition & 1 deletion yamux/src/connection/rtt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
use std::sync::Arc;

use instant::{Duration, Instant};
use parking_lot::Mutex;
use web_time::{Duration, Instant};

use crate::connection::Action;
use crate::frame::{header::Ping, Frame};
Expand Down
4 changes: 2 additions & 2 deletions yamux/src/connection/stream/flow_control.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::{cmp, sync::Arc};

use instant::Instant;
use parking_lot::Mutex;
use web_time::Instant;

use crate::{connection::rtt::Rtt, Config, DEFAULT_CREDIT};

Expand Down Expand Up @@ -212,8 +212,8 @@ impl Drop for FlowController {
#[cfg(test)]
mod tests {
use super::*;
use instant::Duration;
use quickcheck::{GenRange, QuickCheck};
use web_time::Duration;

#[derive(Debug)]
struct Input {
Expand Down

0 comments on commit 5709e1b

Please sign in to comment.