Skip to content

Commit

Permalink
doc: Document is_caught_up_with_chain_head
Browse files Browse the repository at this point in the history
  • Loading branch information
leoyvens committed Feb 29, 2024
1 parent ca4f272 commit 9316ad2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions graph/src/components/store/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,11 @@ pub trait WritableStore: ReadStore + DeploymentCursorTracker {
/// subgraph block pointer to `block_ptr_to`, and update the firehose cursor to `firehose_cursor`
///
/// `block_ptr_to` must point to a child block of the current subgraph block pointer.
///
/// `is_caught_up_with_chain_head` indicates if `block_ptr_to` is close enough to the chain head
/// to be considered 'caught up', for purposes such as setting the synced flag or turning off
/// write batching. This is as vague as it sounds, it is not deterministic and should be treated
/// as a hint only.
async fn transact_block_operations(
&self,
block_ptr_to: BlockPtr,
Expand Down

0 comments on commit 9316ad2

Please sign in to comment.