Remove the NetworkChan (#2577)

* Remove the NetworkChan from the API

* Remove the NetworkChan altogether

* Address review

* Fix line widths

* More line width fixes

* Remove pub visibility from entire world

* Fix tests
This commit is contained in:
Pierre Krieger
2019-05-21 14:07:01 +02:00
committed by GitHub
parent e296cf8cba
commit 062b734571
8 changed files with 361 additions and 298 deletions
+4
View File
@@ -973,6 +973,10 @@ mod tests {
})
}
fn uses_tokio(&self) -> bool {
true
}
fn peer(&self, i: usize) -> &Peer<Self::PeerData, DummySpecialization> {
trace!(target: "babe", "Retreiving a peer");
&self.peers[i]