mirror of
https://git.asonix.dog/asonix/background-jobs.git
synced 2024-11-21 11:30:59 +00:00
metrics: fix docs
This commit is contained in:
parent
f85469686f
commit
8797127077
2 changed files with 2 additions and 2 deletions
|
@ -46,7 +46,7 @@ pub fn install() -> Result<StatsHandle, SetRecorderError<StatsRecorder>> {
|
|||
/// .add_recorder(jobs_recorder)
|
||||
/// .build();
|
||||
///
|
||||
/// metrics::set_boxed_recorder(Box::new(recorder)).expect("Failed to set recorder");
|
||||
/// metrics::set_global_recorder(recorder).expect("Failed to set recorder");
|
||||
///
|
||||
/// println!("{:?}", handle.get());
|
||||
/// ```
|
||||
|
|
|
@ -125,7 +125,7 @@ impl StatsRecorder {
|
|||
/// .add_recorder(jobs_recorder)
|
||||
/// .build();
|
||||
///
|
||||
/// metrics::set_boxed_recorder(Box::new(recorder)).expect("Failed to set recorder");
|
||||
/// metrics::set_global_recorder(recorder).expect("Failed to set recorder");
|
||||
///
|
||||
/// println!("{:?}", handle.get());
|
||||
/// ```
|
||||
|
|
Loading…
Reference in a new issue