From 67dc36fe960b8777f220baaf6675f89ccde6f838 Mon Sep 17 00:00:00 2001 From: rustaceanrob Date: Thu, 1 Aug 2024 10:42:10 -0500 Subject: [PATCH] bump(tokio): 1.37 --- Cargo.toml | 2 +- doc/NASHVILLE24.md | 25 ++----------------------- 2 files changed, 3 insertions(+), 24 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index db3fad5..e7d86b0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,7 @@ bitcoin = { version = "0.32.0", features = [ "serde", "rand-std", ], default-features = false } -tokio = { version = "1", default-features = false, features = [ +tokio = { version = "1.37", default-features = false, features = [ "rt-multi-thread", "sync", "time", diff --git a/doc/NASHVILLE24.md b/doc/NASHVILLE24.md index a250b6b..6523f78 100644 --- a/doc/NASHVILLE24.md +++ b/doc/NASHVILLE24.md @@ -28,7 +28,7 @@ bitcoin = { version = "0.32.0", features = [ "serde", "rand-std", ], default-features = false } -tokio = { version = "1", default-features = false, features = [ +tokio = { version = "1.37", default-features = false, features = [ "rt-multi-thread", "sync", "time", @@ -45,25 +45,4 @@ rusqlite = { version = "0.31.0", features = ["bundled"], optional = true } # Swift example -- Called when the application starts - -```swift -let spv = buildLightClient(wallet: wallet, - peers: peers, - connections: 1, - recoveryHeight: 170_000, - dataDir: path, - logger: messageHandler) -let node = spv.node -let client = spv.client -runNode(node: node) -Task { - while true { - let update = await client.update() - if update != nil { - try! wallet.applyUpdate(update: update!) - balance = wallet.balance().total.toSat() - } - } -} -``` +