Re-enable networking on wasm (#4880)

* Use noise and timeouts on wasm

* Don't use wasm-opt when compiling to wasm

* Forgot lockfile

* Add node about disabling wasm-opt

* Enable timeouts in telemetry on wasm
This commit is contained in:
Ashley authored and GitHub committed 2020-02-18 16:18:32 +01:00
1 parent aa4123039f
commit 133a4f967f
4 files changed
+13 -26

No files matched your search

+2 -2
View File
@@ -98,10 +98,10 @@ impl TelemetryWorker {
.map_ok(|data| BytesMut::from(data.as_ref()));
future::ready(Ok::<_, io::Error>(connec))
})
})
.timeout(CONNECT_TIMEOUT);
});
let transport = transport
.timeout(CONNECT_TIMEOUT)
.map_err(|err| io::Error::new(io::ErrorKind::Other, err))
.map(|out, _| {
let out = out