/// Set subgraph deployment entity synced flag if and only if the subgraph block pointer is
/// caught up to the head block pointer.
Set subgraph deployment entity synced flag if and only if the subgraph block pointer is
caught up to the head block pointer.
Set subgraph deployment entity synced flag if and only if the subgraph block pointer is caught up to the head block pointer .
fn update_subgraph_synced_status(&self) -> Result<(), Error> {
        let head_ptr_opt = self.chain_store.chain_head_ptr()?;
        let subgraph_ptr = self.subgraph_store.block_ptr()?;
        if head_ptr_opt != subgraph_ptr || head_ptr_opt.is_none() || subgraph_ptr.is_none() {
            // Not synced yet
            Ok(())
        } else {
            // Synced
            // Stop recording time-to-sync metrics.
            self.metrics.stopwatch.disable();
            self.subgraph_store.deployment_synced()
        }
    }
fn update_subgraph_synced_status ( & self ) -> Result < ( ) , Error > { let head_ptr_opt = self . chain_store . chain_head_ptr ( ) ? ; let subgraph_ptr = self . subgraph_store . block_ptr ( ) ? ; if head_ptr_opt != subgraph_ptr || head_ptr_opt . is_none ( ) || subgraph_ptr . is_none ( ) { // Not synced yet Ok ( ( ) ) } else { // Synced // Stop recording time-to-sync metrics. self . metrics . stopwatch . disable ( ) ; self . subgraph_store . deployment_synced ( ) } }
Set subgraph deployment entity synced flag if and only if the subgraph block pointer is
caught up to the head block pointer.
Set subgraph deployment entity synced flag if and only if the subgraph block pointer is caught up to the head block pointer .
&self