Rename pk variables to pubkey

This commit is contained in:
Greg Fitzgerald
2018-08-09 09:15:51 -06:00
parent ad331e6d56
commit 9d436fc5f8
2 changed files with 7 additions and 7 deletions

View File

@@ -909,8 +909,8 @@ impl Crdt {
}
inc_new_counter_info!("crdt-update-count", insert_total);
for (pk, external_remote_index) in external_liveness {
let remote_entry = if let Some(v) = self.remote.get(pk) {
for (pubkey, external_remote_index) in external_liveness {
let remote_entry = if let Some(v) = self.remote.get(pubkey) {
*v
} else {
0
@@ -922,7 +922,7 @@ impl Crdt {
let liveness_entry = self
.external_liveness
.entry(*pk)
.entry(*pubkey)
.or_insert_with(HashMap::new);
let peer_index = *liveness_entry.entry(from).or_insert(*external_remote_index);
if *external_remote_index > peer_index {