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

Method get_external

atomic-core/src/merge/engine.rs:509–516  ·  view source on GitHub ↗
(&self, id: NodeId)

Source from the content-addressed store, hash-verified

507 type Adj = std::vec::IntoIter<Result<crate::types::SerializedGraphEdge, PristineError>>;
508
509 fn get_external(&self, id: NodeId) -> Result<Option<Hash>, PristineError> {
510 if self.fail_external == Some(id) {
511 return Err(PristineError::Inconsistent {
512 message: "scripted get_external failure".to_string(),
513 });
514 }
515 Ok(self.externals.get(&id).copied())
516 }
517
518 fn get_internal(&self, _hash: &Hash) -> Result<Option<NodeId>, PristineError> {
519 Ok(None)

Callers 1

get_vertex_contentMethod · 0.45

Calls 1

getMethod · 0.65

Tested by

no test coverage detected