nonblocking send when when droping banks

This commit is contained in:
Haoran Yi
2022-04-04 17:09:05 -05:00
parent 7e1374557f
commit 088c98ec0f

View File

@ -55,7 +55,7 @@ pub struct SendDroppedBankCallback {
impl DropCallback for SendDroppedBankCallback {
fn callback(&self, bank: &Bank) {
if let Err(e) = self.sender.send((bank.slot(), bank.bank_id())) {
if let Err(e) = self.sender.try_send((bank.slot(), bank.bank_id())) {
warn!("Error sending dropped banks: {:?}", e);
}
}