Stats on steals

This commit is contained in:
Igor Katson 2024-04-07 15:49:23 +04:00
parent 6a23f311e1
commit cdbd91b13b
6 changed files with 29 additions and 5 deletions

View file

@ -1055,10 +1055,8 @@ impl PeerHandler {
}
};
// Send cancellations to old peer.
{
self.state.peers.send_cancellations(from_peer, stolen_idx);
}
// Send cancellations to old peer and bump counters.
self.state.peers.on_steal(from_peer, self.addr, stolen_idx);
Some(stolen_idx)
}