From 1f3c3853e3169691d6d73b59c4214928aeadb22b Mon Sep 17 00:00:00 2001 From: Mark Rousskov Date: Thu, 18 Jul 2019 15:02:54 -0400 Subject: [PATCH] Utilize multi-threaded tokio runtime for move-to-s3 The current thread runtime was previously used but there was no reason to do so. This utilizes the default runtime. --- src/db/file.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db/file.rs b/src/db/file.rs index 5e0eee1e6..a49132a4b 100644 --- a/src/db/file.rs +++ b/src/db/file.rs @@ -233,7 +233,7 @@ pub fn move_to_s3(conn: &Connection, n: usize) -> Result { &[])); let count = rows.len(); - let mut rt = ::tokio::runtime::current_thread::Runtime::new().unwrap(); + let mut rt = ::tokio::runtime::Runtime::new().unwrap(); let mut futures = Vec::new(); for row in &rows { let path: String = row.get(0);