MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / inverted_err

Function inverted_err

nodedb/src/engine/sparse/inverted/errors.rs:24–29  ·  view source on GitHub ↗

Wrap a redb-side failure as `crate::Error::Storage` with engine context.

(ctx: &str, e: impl std::fmt::Display)

Source from the content-addressed store, hash-verified

22
23/// Wrap a redb-side failure as `crate::Error::Storage` with engine context.
24pub(super) fn inverted_err(ctx: &str, e: impl std::fmt::Display) -> crate::Error {
25 crate::Error::Storage {
26 engine: "inverted".into(),
27 detail: format!("{ctx}: {e}"),
28 }
29}
30
31/// Identity adapter so callers can `.map_err(into_result_err)` without
32/// importing the type — kept as a function so future error widening (e.g.

Callers 8

index_documentMethod · 0.85
write_index_dataMethod · 0.85
update_stats_in_txnMethod · 0.85
remove_documentMethod · 0.85
put_synonym_groupMethod · 0.85
delete_synonym_groupMethod · 0.85
list_synonym_groupsMethod · 0.85
phrase_searchMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected