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

Method set_reject_next

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

Inject an error that will be returned by the next `apply_*` call.

(&self, err: ArrayError)

Source from the content-addressed store, hash-verified

210
211 /// Inject an error that will be returned by the next `apply_*` call.
212 pub fn set_reject_next(&self, err: ArrayError) {
213 *self
214 .reject_next_with
215 .lock()
216 .expect("invariant: MockEngine mutex is not poisoned") = Some(err);
217 }
218
219 fn take_inject(&self) -> Option<ArrayError> {
220 self.reject_next_with

Callers 1

Calls 2

lockMethod · 0.80
expectMethod · 0.45

Tested by 1