]> git.bitcoin.ninja Git - ldk-sample/commit
Dont block tokio reactor waiting on user input
authorMatt Corallo <git@bluematt.me>
Tue, 22 Aug 2023 20:59:23 +0000 (20:59 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 22 Aug 2023 23:25:57 +0000 (23:25 +0000)
commitb5e80fbe4efe97d25549f2369253d1b9647de252
tree2d1fb70e4e9da660220b8bd889f1c91ba828d1a7
parent4ebb52c5f75db0b51d2b2e1c0a049d826e4dc732
Dont block tokio reactor waiting on user input

When we moved the CLI input reading into a `tokio::select`, we
ended up blocking the tokio reactor by reading from stdin in a
standard tokio future. Instead, we need to let tokio know that
we're running a largely-blocking task.
src/cli.rs
src/main.rs