revert bitswap network notification

@jbenet @whyrusleeping
This commit is contained in:
Brian Tiger Chow 2015-01-24 11:46:23 -08:00
parent 6c6dcfce2b
commit bbc54516bf

View File

@ -342,14 +342,6 @@ func (bs *bitswap) ReceiveMessage(ctx context.Context, p peer.ID, incoming bsmsg
// Connected/Disconnected warns bitswap about peer connections
func (bs *bitswap) PeerConnected(p peer.ID) {
// TODO: add to clientWorker??
peers := make(chan peer.ID)
err := bs.sendWantlistToPeers(context.TODO(), peers)
if err != nil {
log.Errorf("error sending wantlist: %s", err)
}
peers <- p
close(peers)
}
// Connected/Disconnected warns bitswap about peer connections