Skip to content

Commit 0ac88a7

Browse files
committed
fix: fix mutex new
1 parent d5cbf34 commit 0ac88a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ pub struct Args {
5151
}
5252

5353
pub static ARGS: Lazy<Args> = Lazy::new(Args::parse);
54-
pub static ABBS_REPO_LOCK: Lazy<tokio::sync::Mutex<()>> = Lazy::new(tokio::sync::Mutex::new);
54+
pub static ABBS_REPO_LOCK: Lazy<tokio::sync::Mutex<()>> = Lazy::new(|| tokio::sync::Mutex::new(()));
5555

5656
// follow https://github.com/AOSC-Dev/autobuild3/blob/master/sets/arch_groups/mainline
5757
pub(crate) const ALL_ARCH: &[&str] = &[

0 commit comments

Comments
 (0)