Track Tokio v0.3 changes (#67)

This commit is contained in:
Carl Lerche
2020-10-22 20:18:54 -07:00
committed by GitHub
parent b552f53c3f
commit 77df32d15e
7 changed files with 295 additions and 253 deletions

View File

@@ -47,9 +47,10 @@ enum Command {
/// started when the function is called. The body of the function is executed
/// within the newly spawned runtime.
///
/// `basic_scheduler` is used here to avoid spawning background threads. The CLI
/// tool use case benefits more by being lighter instead of multi-threaded.
#[tokio::main(basic_scheduler)]
/// `flavor = "current_thread"` is used here to avoid spawning background
/// threads. The CLI tool use case benefits more by being lighter instead of
/// multi-threaded.
#[tokio::main(flavor = "current_thread")]
async fn main() -> mini_redis::Result<()> {
// Enable logging
tracing_subscriber::fmt::try_init()?;