fix: seed thread panicked on a try_read unwrap

This commit is contained in:
Gary Yu 2018-10-05 21:16:44 +08:00
parent 48f9ec61f4
commit 697805752c

View file

@ -97,7 +97,7 @@ impl Peers {
debug!( debug!(
LOGGER, LOGGER,
"Successfully updated Dandelion relay to: {}", "Successfully updated Dandelion relay to: {}",
peer.try_read().unwrap().info.addr peer.read().unwrap().info.addr
); );
} }
None => debug!(LOGGER, "Could not update dandelion relay"), None => debug!(LOGGER, "Could not update dandelion relay"),