Don't panic on packet data (#6769)

This commit is contained in:
Jack May
2019-11-06 14:32:37 -08:00
committed by GitHub
parent 29f3b198cf
commit 65de227520
4 changed files with 10 additions and 9 deletions

View File

@@ -1183,8 +1183,8 @@ impl ClusterInfo {
"cluster_info-gossip_pull_request_verify_fail",
1
);
} else if caller.contact_info().is_some() {
if caller.contact_info().unwrap().id == me.read().unwrap().gossip.id {
} else if let Some(contact_info) = caller.contact_info() {
if contact_info.id == me.read().unwrap().gossip.id {
warn!("PullRequest ignored, I'm talking to myself");
inc_new_counter_debug!("cluster_info-window-request-loopback", 1);
} else {