mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-09 18:47:59 +00:00
Remove NetworkService::report_handle (#2462)
This commit is contained in:
committed by
Gavin Wood
parent
747df1f332
commit
35b84ae8f6
@@ -274,11 +274,6 @@ impl<B: BlockT + 'static, S: NetworkSpecialization<B>> Service<B, S> {
|
||||
));
|
||||
}
|
||||
|
||||
/// Return a cloneable handle for reporting peers' benefits or misbehavior.
|
||||
pub fn report_handle(&self) -> ReportHandle {
|
||||
ReportHandle { inner: self.peerset.clone() }
|
||||
}
|
||||
|
||||
/// Report a given peer as either beneficial (+) or costly (-) according to the
|
||||
/// given scalar.
|
||||
pub fn report_peer(&self, who: PeerId, cost_benefit: i32) {
|
||||
|
||||
Reference in New Issue
Block a user