Skip to content

Commit fe85696

Browse files
authored
Merge pull request #855 from valentinewallace/expose-asyncblocksourceresult
Expose AsyncBlockSourceResult as pub
2 parents 8a8c75a + 85106c9 commit fe85696

File tree

1 file changed

+2
-2
lines changed
  • lightning-block-sync/src

1 file changed

+2
-2
lines changed

lightning-block-sync/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ pub trait BlockSource : Sync + Send {
7575
}
7676

7777
/// Result type for `BlockSource` requests.
78-
type BlockSourceResult<T> = Result<T, BlockSourceError>;
78+
pub type BlockSourceResult<T> = Result<T, BlockSourceError>;
7979

8080
// TODO: Replace with BlockSourceResult once `async` trait functions are supported. For details,
8181
// see: https://areweasyncyet.rs.
8282
/// Result type for asynchronous `BlockSource` requests.
83-
type AsyncBlockSourceResult<'a, T> = Pin<Box<dyn Future<Output = BlockSourceResult<T>> + 'a + Send>>;
83+
pub type AsyncBlockSourceResult<'a, T> = Pin<Box<dyn Future<Output = BlockSourceResult<T>> + 'a + Send>>;
8484

8585
/// Error type for `BlockSource` requests.
8686
///

0 commit comments

Comments
 (0)