Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Better docs for TxPool::import_notification_stream (#4157)
Browse files Browse the repository at this point in the history
* better docs for import_notification_stream

* Apply suggestions from code review

Co-Authored-By: Tomasz Drwięga <[email protected]>
  • Loading branch information
2 people authored and gavofyork committed Nov 22, 2019
1 parent aef7815 commit 51ee631
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/transaction-pool/graph/src/pool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,10 @@ impl<B: ChainApi> Pool<B> {
)))
}

/// Return an event stream of transactions imported to the pool.
/// Return an event stream of notifications for when transactions are imported to the pool.
///
/// Consumers of this stream should use the `ready` method to actually get the
/// pending transactions in the right order.
pub fn import_notification_stream(&self) -> EventStream {
self.validated_pool.import_notification_stream()
}
Expand Down

0 comments on commit 51ee631

Please sign in to comment.