You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, it's only possible perform runtime upgrades as follows:
tokio::spawn(asyncmove{let update_client = api2.subscribe_to_updates();// This will run runtime updates in a loop which only returns if the RPC subscription is terminated.ifletErr(e) = match update_client.perform_runtime_updates().await{
log::error!(target: LOG_TARGET, "Runtime update failed with result: {:?}", e);let _ = tx_runtime.send(e);}});
subxt spawns a loop performs upgrades under the hood but I would want to know when a runtime upgrade occurred to provide some kind of metrics for it.
I think the current API is good but having a low-level API or some impl Stream wrapper that fires every time a runtime upgrade occurs.
The text was updated successfully, but these errors were encountered:
Currently, it's only possible perform runtime upgrades as follows:
subxt spawns a loop performs upgrades under the hood but I would want to know when a runtime upgrade occurred to provide some kind of metrics for it.
I think the current API is good but having a low-level API or some
impl Stream
wrapper that fires every time a runtime upgrade occurs.The text was updated successfully, but these errors were encountered: