mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-25 21:25:03 +00:00
Remove NetworkService::report_handle (#2462)
This commit is contained in:
1 parent
747df1f332
commit
35b84ae8f6
1 file changed
-5
@@ -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