From d8d1ce1634e9fdc2fbce67f1ae46a828959d0793 Mon Sep 17 00:00:00 2001 From: asonix Date: Sun, 10 Mar 2024 23:02:03 -0500 Subject: [PATCH] Don't mention tokio_uring --- src/lib.rs | 6 +++--- src/main.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) 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()?