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

Function clear

nodedb/src/fail_point.rs:48–53  ·  view source on GitHub ↗

Remove any installed action for the named fail point.

(name: &str)

Source from the content-addressed store, hash-verified

46
47 /// Remove any installed action for the named fail point.
48 pub fn clear(name: &str) {
49 REGISTRY
50 .lock()
51 .unwrap_or_else(|p| p.into_inner())
52 .remove(name);
53 }
54
55 /// Look up the installed action for a fail point (None if not set).
56 pub fn lookup(name: &str) -> Option<FailAction> {

Callers 1

dropMethod · 0.85

Calls 2

lockMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected