Merge pull request #1664 from garyyu/fix1015

fix: seed thread panicked on a try_read unwrap
This commit is contained in:
hashmap 2018-10-05 15:39:16 +02:00 committed by GitHub
commit 888ce24d17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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