We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
split_off
get_pending_events()
1 parent 94c1e37 commit d8ba98bCopy full SHA for d8ba98b
lightning-liquidity/src/events.rs
@@ -87,7 +87,7 @@ impl EventQueue {
87
}
88
89
pub fn get_and_clear_pending_events(&self) -> Vec<Event> {
90
- self.queue.lock().unwrap().drain(..).collect()
+ self.queue.lock().unwrap().split_off(0).into()
91
92
93
0 commit comments