Don't mention tokio_uring
All checks were successful
/ tests (push) Successful in 2m51s
/ check (aarch64-unknown-linux-musl) (push) Successful in 2m44s
/ check (x86_64-unknown-linux-musl) (push) Successful in 2m5s
/ clippy (push) Successful in 2m56s
/ check (armv7-unknown-linux-musleabihf) (push) Successful in 2m38s
All checks were successful
/ tests (push) Successful in 2m51s
/ check (aarch64-unknown-linux-musl) (push) Successful in 2m44s
/ check (x86_64-unknown-linux-musl) (push) Successful in 2m5s
/ clippy (push) Successful in 2m56s
/ check (armv7-unknown-linux-musleabihf) (push) Successful in 2m38s
This commit is contained in:
parent
7021c50156
commit
d8d1ce1634
|
@ -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