mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
net/hosts: Drop q lock when possible.
This commit is contained in:
@@ -665,6 +665,7 @@ impl Hosts {
|
||||
if *retries == self.settings.hosts_quarantine_limit {
|
||||
debug!(target: "net::hosts::quarantine()", "Reached quarantine limited after {:?}", timer.elapsed());
|
||||
debug!(target: "net::hosts::quarantine()", "Removing from hostlist {}", addr);
|
||||
drop(q);
|
||||
self.downgrade_host(addr, last_seen).await;
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user