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

Method find_block

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

Source from the content-addressed store, hash-verified

503 }
504
505 fn find_block(&self, pos: Position<NodeId>) -> Result<GraphNode<NodeId>, PristineError> {
506 if self.empty || pos == Position::ROOT {
507 Err(PristineError::BlockNotFound {
508 change: pos.change.get(),
509 pos: pos.pos.get(),
510 })
511 } else {
512 // Return a span for the position
513 Ok(GraphNode::new(
514 pos.change,
515 pos.pos,
516 ChangePosition::new(pos.pos.get() + 10),
517 ))
518 }
519 }
520
521 fn find_block_end(
522 &self,

Calls 1

getMethod · 0.65

Tested by

no test coverage detected