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

Method register_array

nodedb-array/src/sync/apply.rs:207–209  ·  view source on GitHub ↗

Register an array so that ops targeting it can be applied.

(&mut self, array: &str, schema_hlc: Hlc)

Source from the content-addressed store, hash-verified

205
206 /// Register an array so that ops targeting it can be applied.
207 pub fn register_array(&mut self, array: &str, schema_hlc: Hlc) {
208 self.schemas.insert(array.to_string(), schema_hlc);
209 }
210
211 /// Inject an error that will be returned by the next `apply_*` call.
212 pub fn set_reject_next(&self, err: ArrayError) {

Calls 2

to_stringMethod · 0.80
insertMethod · 0.45