2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-12-22 11:21:24 +00:00

Don't mention tokio_uring

This commit is contained in:
asonix 2024-03-10 23:02:03 -05:00
parent 7021c50156
commit d8d1ce1634
2 changed files with 4 additions and 4 deletions

View file

@ -1888,12 +1888,12 @@ impl PictRsConfiguration {
/// Run the pict-rs application /// Run the pict-rs application
/// ///
/// This must be called from within a tokio `LocalSet`, which is created by default for /// 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: /// Example:
/// ```rust,ignore /// ```rust
/// fn main() -> color_eyre::Result<()> { /// 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!({ /// let pict_rs_server = pict_rs::ConfigSource::memory(serde_json::json!({
/// "repo": { /// "repo": {
/// "type": "sled", /// "type": "sled",

View file

@ -1,6 +1,6 @@
#[cfg(feature = "io-uring")] #[cfg(feature = "io-uring")]
fn main() -> color_eyre::Result<()> { fn main() -> color_eyre::Result<()> {
tokio_uring::start(async move { actix_web::rt::System::new().block_on(async move {
pict_rs::PictRsConfiguration::build_default()? pict_rs::PictRsConfiguration::build_default()?
.install_tracing()? .install_tracing()?
.install_metrics()? .install_metrics()?