Skip to content

Commit

Permalink
Use Worker::builder lib docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustworthy committed May 30, 2024
1 parent 201c0e8 commit c8931d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@
//!
//! ```no_run
//! # tokio_test::block_on(async {
//! use faktory::WorkerBuilder;
//! use faktory::Worker;
//! use std::io;
//! let mut w = WorkerBuilder::default()
//! let mut w = Worker::builder()
//! .register_fn("foobar", |job| async move {
//! println!("{:?}", job);
//! Ok::<(), io::Error>(())
Expand Down

0 comments on commit c8931d5

Please sign in to comment.