mirror of
https://github.com/uqbar-dao/nectar.git
synced 2025-01-03 06:11:01 +03:00
fix: eth: remove subscriptions when network error recieved from subscriber
This commit is contained in:
parent
6f156926fa
commit
235f7587e0
@ -251,7 +251,7 @@ async fn handle_network_error(
|
||||
// if we hold active subscriptions for the remote node that this error refers to,
|
||||
// close them here -- they will need to resubscribe
|
||||
// TODO is this necessary?
|
||||
if let Some(sub_map) = active_subscriptions.get(&wrapped_error.error.target) {
|
||||
if let Some((_who, sub_map)) = active_subscriptions.remove(&wrapped_error.error.target) {
|
||||
for (_sub_id, sub) in sub_map.iter() {
|
||||
if let ActiveSub::Local(handle) = sub {
|
||||
verbose_print(
|
||||
|
Loading…
Reference in New Issue
Block a user