mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-04-16 22:13:14 -04:00
fix(wasm): Format watchDhtValue result timestamp as u64 before formatting as string
This commit is contained in:
parent
71ad90e2d4
commit
62be5f8f4a
@ -628,7 +628,7 @@ pub fn routing_context_watch_dht_values(
|
||||
let res = routing_context
|
||||
.watch_dht_values(key, subkeys, expiration, count)
|
||||
.await?;
|
||||
APIResult::Ok(res.to_string())
|
||||
APIResult::Ok(res.as_u64().to_string())
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -379,7 +379,7 @@ impl VeilidRoutingContext {
|
||||
let res = routing_context
|
||||
.watch_dht_values(key, subkeys, expiration, count)
|
||||
.await?;
|
||||
APIResult::Ok(res.to_string())
|
||||
APIResult::Ok(res.as_u64().to_string())
|
||||
}
|
||||
|
||||
/// Cancels a watch early
|
||||
|
Loading…
x
Reference in New Issue
Block a user