Remove name parameter from (*Peers)ForEach consumer function

It's part of the Peer anyway.
This commit is contained in:
David Wragg committed 2015-03-27 18:05:00 +00:00
1 parent 5617258cca
commit a670272a37
4 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -36,7 +36,7 @@ func (cache *MacCache) MarshalJSON() ([]byte, error) {
func (peers *Peers) MarshalJSON() ([]byte, error) {
var ps []*Peer
peers.ForEach(func(_ PeerName, peer *Peer) { ps = append(ps, peer) })
peers.ForEach(func(peer *Peer) { ps = append(ps, peer) })
return json.Marshal(ps)
}