MCPcopy Create free account
hub / github.com/dfinity/orbit / remove

Method remove

core/station/impl/src/repositories/transfer.rs:110–124  ·  view source on GitHub ↗
(&self, key: &TransferKey)

Source from the content-addressed store, hash-verified

108 }
109
110 fn remove(&self, key: &TransferKey) -> Option<Transfer> {
111 DB.with(|m| {
112 let prev = m.borrow_mut().remove(key);
113
114 if let Some(prev) = &prev {
115 self.remove_entry_indexes(prev);
116 }
117
118 if let Some(prev) = &prev {
119 self.remove_observer.notify(prev);
120 }
121
122 prev
123 })
124 }
125}
126
127impl TransferRepository {

Callers 1

remove_entry_indexesMethod · 0.45

Calls 2

remove_entry_indexesMethod · 0.45
notifyMethod · 0.45

Tested by

no test coverage detected