We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
split_off
get_pending_events()
1 parent 66b8611 commit d2ab610Copy full SHA for d2ab610
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