Skip to content

Commit 088cf83

Browse files
committed
Fix thread creation where Tokio runtime is not available
1 parent 3696973 commit 088cf83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/subspace-farmer/src/commitments/databases.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ impl CommitmentDatabases {
146146
Ok(())
147147
})?;
148148

149-
tokio::task::spawn_blocking(move || {
149+
std::thread::spawn(move || {
150150
// Take a lock to make sure database was released by whatever user there was and we
151151
// have an exclusive access to it, then drop it
152152
old_db_entry.db.lock().take();

0 commit comments

Comments
 (0)