While creating my custom node based on rust-libp2p, I rediscovered some uses of std::time::Instant in the Gossipsub and Kadmelia modules. As previously done by the PR #1071 (issue #900), the remaining std::time::Instant should again be replaced with wasm_timer::Instant to allow Wasm compatibility.
The spotted ones:
While creating my custom node based on rust-libp2p, I rediscovered some uses of
std::time::Instantin the Gossipsub and Kadmelia modules. As previously done by the PR #1071 (issue #900), the remainingstd::time::Instantshould again be replaced withwasm_timer::Instantto allow Wasm compatibility.The spotted ones:
rust-libp2p/protocols/gossipsub/src/time_cache.rs
Line 29 in ee11922
rust-libp2p/protocols/gossipsub/src/peer_score.rs
Line 30 in ee11922
rust-libp2p/protocols/mdns/src/behaviour.rs
Line 45 in ee11922
rust-libp2p/protocols/kad/src/kbucket.rs
Line 80 in ee11922