MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / find_block

Method find_block

atomic-core/src/record/workflow/retrieve.rs:528–542  ·  view source on GitHub ↗
(&self, pos: Position<NodeId>)

Source from the content-addressed store, hash-verified

526 }
527
528 fn find_block(&self, pos: Position<NodeId>) -> Result<GraphNode<NodeId>, PristineError> {
529 if self.empty || pos == Position::ROOT {
530 Err(PristineError::BlockNotFound {
531 change: pos.change.get(),
532 pos: pos.pos.get(),
533 })
534 } else {
535 // Return a span for the position
536 Ok(GraphNode::new(
537 pos.change,
538 pos.pos,
539 ChangePosition::new(pos.pos.get() + 10),
540 ))
541 }
542 }
543
544 fn find_block_end(
545 &self,

Calls 1

getMethod · 0.65

Tested by

no test coverage detected