Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ElementsProject/lightning
/ mark_success
Method
mark_success
plugins/currencyrate-plugin/src/oracle.rs:152–155 ·
view source on GitHub ↗
(&mut self)
Source
from the content-addressed store, hash-verified
150
}
151
152
fn mark_success(&mut self) {
153
self.failures = 0;
154
self.backoff_until = Instant::now();
155
}
156
157
fn mark_failure(&mut self) {
158
self.failures += 1;
Callers
3
reset_backoff_if_needed
Method · 0.80
refresh_currency
Method · 0.80
background_refresh
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected