mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-12-08 00:32:26 -05:00
tweak bpaf usage message
As discussed here: https://github.com/pacak/bpaf/discussions/165#discussioncomment-4967176 I also snuck in a conversion from `lazy_static` to `once_cell`, rather than adding another usage of the former.
This commit is contained in:
@@ -728,7 +728,6 @@ mod bench {
|
||||
|
||||
use db::testutil::{self, TestDb};
|
||||
use hyper;
|
||||
use lazy_static::lazy_static;
|
||||
use std::sync::Arc;
|
||||
use uuid::Uuid;
|
||||
|
||||
@@ -786,9 +785,7 @@ mod bench {
|
||||
}
|
||||
}
|
||||
|
||||
lazy_static! {
|
||||
static ref SERVER: Server = Server::new();
|
||||
}
|
||||
static SERVER: once_cell::sync::Lazy<Server> = once_cell::sync::Lazy::new(Server::new);
|
||||
|
||||
#[bench]
|
||||
fn serve_stream_recordings(b: &mut test::Bencher) {
|
||||
|
||||
Reference in New Issue
Block a user