It turns out std::time::Instant::now() panics WASM (see #459) and breaks the heartbeat handler.
This pr attempts to fix that by replacing std::time::Instant with wasmtimer::std::Instant and safina_timer::sleep_until with wasmtimer::tokio::sleep_until.
It turns out
std::time::Instant::now()
panics WASM (see #459) and breaks the heartbeat handler.This pr attempts to fix that by replacing
std::time::Instant
withwasmtimer::std::Instant
andsafina_timer::sleep_until
withwasmtimer::tokio::sleep_until
.