Skip to content

Commit a7b8cae

Browse files
committedFeb 2, 2024
Fix unit tests (?)
1 parent 4d6ae20 commit a7b8cae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎downstairs/src/region.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -871,8 +871,8 @@ impl Region {
871871
// multiple at the same time.
872872
let mut results = vec![Ok(()); dirty_extents.len()];
873873
if matches!(
874-
tokio::runtime::Handle::current().runtime_flavor(),
875-
tokio::runtime::RuntimeFlavor::MultiThread
874+
tokio::runtime::Handle::try_current().map(|r| r.runtime_flavor()),
875+
Ok(tokio::runtime::RuntimeFlavor::MultiThread)
876876
) {
877877
let mut slice_start = 0;
878878
let mut slice = self.extents.as_mut_slice();

0 commit comments

Comments
 (0)