From b1cb5bd13ca9f6788beda8087b30d81e9d771f43 Mon Sep 17 00:00:00 2001 From: Jamey Sharp Date: Tue, 8 Aug 2023 16:43:20 -0700 Subject: [PATCH] Fix doc-tests --- lib/src/execute.rs | 2 +- lib/src/service.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/execute.rs b/lib/src/execute.rs index 7a6c1973..66333fe3 100644 --- a/lib/src/execute.rs +++ b/lib/src/execute.rs @@ -225,7 +225,7 @@ impl ExecuteCtx { /// # use viceroy_lib::{Error, ExecuteCtx, ProfilingStrategy, ViceroyService}; /// # async fn f() -> Result<(), Error> { /// # let req = Request::new(Body::from("")); - /// let ctx = ExecuteCtx::new("path/to/a/file.wasm", ProfilingStrategy::None, HashSet::new())?; + /// let ctx = ExecuteCtx::new("path/to/a/file.wasm", ProfilingStrategy::None, HashSet::new(), None)?; /// let resp = ctx.handle_request(req, "127.0.0.1".parse().unwrap()).await?; /// # Ok(()) /// # } diff --git a/lib/src/service.rs b/lib/src/service.rs index 57628059..6478cfe3 100644 --- a/lib/src/service.rs +++ b/lib/src/service.rs @@ -43,7 +43,7 @@ impl ViceroyService { /// # use std::collections::HashSet; /// use viceroy_lib::{Error, ExecuteCtx, ProfilingStrategy, ViceroyService}; /// # fn f() -> Result<(), Error> { - /// let ctx = ExecuteCtx::new("path/to/a/file.wasm", ProfilingStrategy::None, HashSet::new())?; + /// let ctx = ExecuteCtx::new("path/to/a/file.wasm", ProfilingStrategy::None, HashSet::new(), None)?; /// let svc = ViceroyService::new(ctx); /// # Ok(()) /// # }