Skip to content

Commit

Permalink
Merge pull request #51 from rustaceanrob/tokio-37
Browse files Browse the repository at this point in the history
bump(tokio): 1.37
  • Loading branch information
rustaceanrob authored Aug 1, 2024
2 parents eb20285 + 67dc36f commit abb1569
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 24 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
25 changes: 2 additions & 23 deletions doc/NASHVILLE24.md
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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()
}
}
}
```
<!-- end_slide -->

0 comments on commit abb1569

Please sign in to comment.