Skip to content

Commit f01dedd

Browse files
authored
Merge pull request #383 from Mark-Simulacrum/use-multi-thread-runtime
Utilize multi-threaded tokio runtime for move-to-s3
2 parents a313440 + 1f3c385 commit f01dedd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/db/file.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ pub fn move_to_s3(conn: &Connection, n: usize) -> Result<usize> {
266266
&[]));
267267
let count = rows.len();
268268

269-
let mut rt = ::tokio::runtime::current_thread::Runtime::new().unwrap();
269+
let mut rt = ::tokio::runtime::Runtime::new().unwrap();
270270
let mut futures = Vec::new();
271271
for row in &rows {
272272
let path: String = row.get(0);

0 commit comments

Comments
 (0)