minghuaw / azeventhubs

Unofficial Azure Event Hubs SDK over AMQP 1.0 for rust
4 stars 2 forks source link

Use try_remove to avoid panic #7

Closed minghuaw closed 7 months ago

minghuaw commented 7 months ago

It was panicking because remove from the DelayQueue would panic if the key is not found. This is changed to try_remove so that the recovery process can proceed without caring whether the key is found or not.