diff --git a/src/lib.rs b/src/lib.rs index 8d3532a..5395e56 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1888,12 +1888,12 @@ impl PictRsConfiguration { /// Run the pict-rs application /// /// This must be called from within a tokio `LocalSet`, which is created by default for - /// actix-rt runtimes, and by tokio_uring + /// actix-rt runtimes /// /// Example: - /// ```rust,ignore + /// ```rust /// fn main() -> color_eyre::Result<()> { - /// tokio_uring::start(async move { + /// actix_web::rt::System::new().block_on(async move { /// let pict_rs_server = pict_rs::ConfigSource::memory(serde_json::json!({ /// "repo": { /// "type": "sled", diff --git a/src/main.rs b/src/main.rs index 770fec8..6319a7f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,6 @@ #[cfg(feature = "io-uring")] fn main() -> color_eyre::Result<()> { - tokio_uring::start(async move { + actix_web::rt::System::new().block_on(async move { pict_rs::PictRsConfiguration::build_default()? .install_tracing()? .install_metrics()?