Skip to content

Commit

Permalink
Merge branch 'master' into refactor/web-time-switch
Browse files Browse the repository at this point in the history
  • Loading branch information
dariusc93 authored Apr 30, 2024
2 parents b15ece5 + e5c072c commit 0b36054
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions protocols/relay/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

- Fix support for unlimited relay connection according to spec.
See [PR 5244](https://github.com/libp2p/rust-libp2p/pull/5244).
- Use `web-time` instead of `instant`.
See [PR XXXX](https://github.com/libp2p/rust-libp2p/pull/XXXX).
- use `web_time` `Instant` and `SystemTime` versions for wasm support.
See [PR 5328](https://github.com/libp2p/rust-libp2p/pull/5328).

## 0.17.1

Expand Down
3 changes: 2 additions & 1 deletion protocols/relay/src/protocol/inbound_hop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.

use std::time::{Duration, SystemTime};
use std::time::Duration;
use web_time::SystemTime;

use asynchronous_codec::{Framed, FramedParts};
use bytes::Bytes;
Expand Down
3 changes: 2 additions & 1 deletion protocols/relay/src/protocol/outbound_hop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@
// DEALINGS IN THE SOFTWARE.

use std::io;
use std::time::{Duration, SystemTime};
use std::time::Duration;

use asynchronous_codec::{Framed, FramedParts};
use bytes::Bytes;
use futures::prelude::*;
use futures_timer::Delay;
use thiserror::Error;
use web_time::SystemTime;

use libp2p_core::Multiaddr;
use libp2p_identity::PeerId;
Expand Down

0 comments on commit 0b36054

Please sign in to comment.