Remove NetworkService::report_handle (#2462)

This commit is contained in:
Pierre Krieger authored and Gavin Wood committed 2019-05-04 13:58:52 +02:00
1 parent 747df1f332
commit 35b84ae8f6
1 file changed
-5
-5
View File
@@ -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) {