Skip to content

Commit

Permalink
fix(sdk): update failing doc test
Browse files Browse the repository at this point in the history
  • Loading branch information
Serial-ATA committed Nov 7, 2024
1 parent 0541b6c commit 8073908
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions sdk/src/ctx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
//!
Expand All @@ -29,8 +32,9 @@
//! params(who),
//! result(_),
//! event_listener(
//! listener = TangleEventListener,
//! event = JobCalled,
//! listener = TangleEventListener<MyContext, JobCalled>,
//! pre_processor = services_pre_processor,
//! post_processor = services_post_processor,
//! )
//! )]
//! async fn my_job(who: String, ctx: MyContext) -> Result<String, std::convert::Infallible> {
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/docker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
/// }
Expand Down

0 comments on commit 8073908

Please sign in to comment.