Stats on steals
This commit is contained in:
parent
6a23f311e1
commit
cdbd91b13b
6 changed files with 29 additions and 5 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue