Remove name parameter from (*Peers)ForEach consumer function
It's part of the Peer anyway.
This commit is contained in:
1 parent
5617258cca
commit
a670272a37
4 files changed
+8
-8
No files matched your search
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user