From 85106c9768c4fa5cac2e0123a0d67cd6a7d9862a Mon Sep 17 00:00:00 2001 From: Valentine Wallace Date: Wed, 24 Mar 2021 16:03:36 -0400 Subject: [PATCH] Expose AsyncBlockSourceResult and BlockSourceResult as pub Useful for writing objects that implement BlockSource trait. --- lightning-block-sync/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lightning-block-sync/src/lib.rs b/lightning-block-sync/src/lib.rs index bc937b590..ac031132a 100644 --- a/lightning-block-sync/src/lib.rs +++ b/lightning-block-sync/src/lib.rs @@ -75,12 +75,12 @@ pub trait BlockSource : Sync + Send { } /// Result type for `BlockSource` requests. -type BlockSourceResult = Result; +pub type BlockSourceResult = Result; // TODO: Replace with BlockSourceResult once `async` trait functions are supported. For details, // see: https://areweasyncyet.rs. /// Result type for asynchronous `BlockSource` requests. -type AsyncBlockSourceResult<'a, T> = Pin> + 'a + Send>>; +pub type AsyncBlockSourceResult<'a, T> = Pin> + 'a + Send>>; /// Error type for `BlockSource` requests. /// -- 2.39.5