-
Notifications
You must be signed in to change notification settings - Fork 960
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
relay: panics due to unimplemented time in wasm #5305
Comments
dariusc93
changed the title
relay: panics due to unsupported time module
relay: panics due to unimplemented time in wasm
Apr 14, 2024
Doing a quick scan over the code, i did notice the following using
|
9 tasks
From testing, it looks like it is related to what is used in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Summary
libp2p panics in the browser with
time not implemented on this platform
due to unsupported time module when attempting to listen to a relay, despite enablinginstant/wasm-bindgen
feature explicitly in libp2p-relay module. Is it not really clear wherestd::time::Instant
(orstd::time::SystemTime
) is being exposed when targeting was32-unknown-unknown.Expected behavior
Not to panic when attempting to listen to relay
Actual behavior
Panics with
time not implemented on this platform
despite wasm feature being explicitly enabledRelevant log output
No response
Possible Solution
No response
Version
0.53.2 and github at 042174e
Would you like to work on fixing this bug ?
Maybe
The text was updated successfully, but these errors were encountered: