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:
parent
7021c50156
commit
d8d1ce1634
2 changed files with 4 additions and 4 deletions
|
@ -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",
|
||||
|
|
|
@ -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()?
|
||||
|
|
Loading…
Reference in a new issue