rename subscribe_to_updates() to updater() (#792)

This commit is contained in:
kylezs
2023-01-18 21:05:16 +11:00
committed by GitHub
parent e036087db7
commit 8ef80638d0
2 changed files with 5 additions and 5 deletions
@@ -25,7 +25,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
// Start a new tokio task to perform the runtime updates while
// utilizing the API for other use cases.
let update_client = api.subscribe_to_updates();
let update_client = api.updater();
tokio::spawn(async move {
let result = update_client.perform_runtime_updates().await;
println!("Runtime update failed with result={:?}", result);