Skip to content

Commit dba0411

Browse files
committed
monoio blocking thread pool
Signed-off-by: Onur Satici <[email protected]>
1 parent e1f9bbb commit dba0411

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vortex-io/src/runtime/uring.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ use kanal::Receiver;
1717
use kanal::Sender;
1818
use monoio::IoUringDriver;
1919
use monoio::RuntimeBuilder;
20+
use monoio::blocking::DefaultThreadPool;
2021
use vortex_error::vortex_panic;
2122

2223
use crate::runtime::AbortHandle;
@@ -188,6 +189,7 @@ fn run_runtime(receiver: Receiver<Command>) {
188189
// Use the IoUring driver explicitly to avoid ambiguity with feature combinations.
189190
let mut rt = RuntimeBuilder::<IoUringDriver>::new()
190191
.enable_timer()
192+
.attach_thread_pool(Box::new(DefaultThreadPool::new(8)))
191193
.build()
192194
.expect("failed to build uring runtime");
193195

0 commit comments

Comments
 (0)