Skip to content

Commit 1f3c385

Browse files
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.
1 parent 635e91e commit 1f3c385

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/db/file.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ pub fn move_to_s3(conn: &Connection, n: usize) -> Result<usize> {
233233
&[]));
234234
let count = rows.len();
235235

236-
let mut rt = ::tokio::runtime::current_thread::Runtime::new().unwrap();
236+
let mut rt = ::tokio::runtime::Runtime::new().unwrap();
237237
let mut futures = Vec::new();
238238
for row in &rows {
239239
let path: String = row.get(0);

0 commit comments

Comments
 (0)