makes CrdsGossip thread-safe (#18615)

This commit is contained in:
behzad nouri
2021-07-14 22:27:17 +00:00
committed by GitHub
parent 9ed1f24188
commit cf31afdd6a
11 changed files with 477 additions and 471 deletions

View File

@ -745,9 +745,9 @@ mod tests {
// This node is ahead of the trusted validators
cluster_info
.gossip
.crds
.write()
.unwrap()
.crds
.insert(
CrdsValue::new_unsigned(CrdsData::AccountsHashes(SnapshotHash::new(
trusted_validators[0],
@ -765,9 +765,9 @@ mod tests {
// Node is slightly behind the trusted validators
cluster_info
.gossip
.crds
.write()
.unwrap()
.crds
.insert(
CrdsValue::new_unsigned(CrdsData::AccountsHashes(SnapshotHash::new(
trusted_validators[1],
@ -781,9 +781,9 @@ mod tests {
// Node is far behind the trusted validators
cluster_info
.gossip
.crds
.write()
.unwrap()
.crds
.insert(
CrdsValue::new_unsigned(CrdsData::AccountsHashes(SnapshotHash::new(
trusted_validators[2],