mirror of
https://git.asonix.dog/asonix/background-jobs.git
synced 2024-11-28 06:50:59 +00:00
metrics-example: use MetricsStorage
This commit is contained in:
parent
6db1d78192
commit
fa41f6571c
1 changed files with 2 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
use actix_rt::Arbiter;
|
||||
use anyhow::Error;
|
||||
use background_jobs::{
|
||||
metrics::MetricsStorage,
|
||||
ActixSpawner,
|
||||
MaxRetries,
|
||||
// memory_storage::{ActixTimer, Storage},
|
||||
|
@ -38,7 +39,7 @@ async fn main() -> Result<(), Error> {
|
|||
|
||||
// Set up our Storage
|
||||
let db = sled::Config::new().temporary(true).open()?;
|
||||
let storage = Storage::new(db)?;
|
||||
let storage = MetricsStorage::wrap(Storage::new(db)?);
|
||||
// let storage = Storage::new(ActixTimer);
|
||||
|
||||
let arbiter = Arbiter::new();
|
||||
|
|
Loading…
Reference in a new issue