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

This commit is contained in:
kylezs authored and GitHub committed 2023-01-18 10:05:16 +00:00
1 parent e036087db7
commit 8ef80638d0
2 files changed
+5 -5

No files matched your search

@@ -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);