diff --git a/sdk/src/ctx.rs b/sdk/src/ctx.rs index b070d188..b3826b4b 100644 --- a/sdk/src/ctx.rs +++ b/sdk/src/ctx.rs @@ -8,9 +8,12 @@ //! # Example //! //! ```rust,no_run -//! use gadget_sdk::event_listener::tangle::TangleEventListener; //! use gadget_sdk::config::StdGadgetConfiguration; //! use gadget_sdk::ctx::KeystoreContext; +//! use gadget_sdk::event_listener::tangle::jobs::{ +//! services_post_processor, services_pre_processor, +//! }; +//! use gadget_sdk::event_listener::tangle::TangleEventListener; //! use gadget_sdk::job; //! use gadget_sdk::tangle_subxt::tangle_testnet_runtime::api::services::events::JobCalled; //! @@ -29,8 +32,9 @@ //! params(who), //! result(_), //! event_listener( -//! listener = TangleEventListener, -//! event = JobCalled, +//! listener = TangleEventListener, +//! pre_processor = services_pre_processor, +//! post_processor = services_post_processor, //! ) //! )] //! async fn my_job(who: String, ctx: MyContext) -> Result { diff --git a/sdk/src/docker.rs b/sdk/src/docker.rs index e80e71bc..12f9744a 100644 --- a/sdk/src/docker.rs +++ b/sdk/src/docker.rs @@ -448,7 +448,7 @@ impl<'a> Container<'a> { /// #[tokio::main] /// async fn main() -> Result<(), gadget_sdk::Error> { /// let connection = connect_to_docker(None).await?; -/// +/// /// // I now have a handle to my local Docker server! /// Ok(()) /// }