From 4ee65ed243afb7ed629b04b3c1bbbd53df9b665f Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Tue, 3 Oct 2023 01:34:12 -0400 Subject: [PATCH] Update nightly Supersedes #387. --- .github/nightly-version | 2 +- processor/src/tests/scanner.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/nightly-version b/.github/nightly-version index 2540aa02..e205afa2 100644 --- a/.github/nightly-version +++ b/.github/nightly-version @@ -1 +1 @@ -nightly-2023-09-01 +nightly-2023-10-01 diff --git a/processor/src/tests/scanner.rs b/processor/src/tests/scanner.rs index 3f81bd48..747538c0 100644 --- a/processor/src/tests/scanner.rs +++ b/processor/src/tests/scanner.rs @@ -1,11 +1,11 @@ use core::time::Duration; -use std::sync::{Arc, Mutex}; +use std::sync::Arc; use rand_core::OsRng; use frost::{Participant, tests::key_gen}; -use tokio::time::timeout; +use tokio::{sync::Mutex, time::timeout}; use serai_db::{DbTxn, Db, MemDb}; @@ -31,7 +31,7 @@ pub async fn test_scanner(network: N) { let new_scanner = || async { let mut db = db.clone(); let (mut scanner, current_keys) = Scanner::new(network.clone(), db.clone()); - let mut first = first.lock().unwrap(); + let mut first = first.lock().await; if *first { assert!(current_keys.is_empty()); let mut txn = db.txn();