mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
udp: use PanicSentinel
This commit is contained in:
parent
49523779d9
commit
d0eec05d4c
5 changed files with 29 additions and 9 deletions
|
|
@ -7,6 +7,7 @@
|
|||
//! Scrape: 1 873 545 requests/second, 533.75 ns/request
|
||||
//! ```
|
||||
|
||||
use aquatic_common::PanicSentinel;
|
||||
use aquatic_udp::workers::request::run_request_worker;
|
||||
use crossbeam_channel::unbounded;
|
||||
use num_format::{Locale, ToFormattedString};
|
||||
|
|
@ -55,6 +56,7 @@ pub fn run(bench_config: BenchConfig) -> ::anyhow::Result<()> {
|
|||
|
||||
::std::thread::spawn(move || {
|
||||
run_request_worker(
|
||||
PanicSentinel,
|
||||
config,
|
||||
state,
|
||||
request_receiver,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue