network.go merged into peer.go