mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-03 13:00:37 +08:00
doc: peerset fixme
not changing this because i don't want to write a test for it now License: MIT Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
This commit is contained in:

committed by
Juan Batiz-Benet

parent
45faa4d7a0
commit
19764880d8
@ -7,7 +7,7 @@ import (
|
|||||||
|
|
||||||
// PeerSet is a threadsafe set of peers
|
// PeerSet is a threadsafe set of peers
|
||||||
type PeerSet struct {
|
type PeerSet struct {
|
||||||
ps map[string]bool
|
ps map[string]bool // FIXME can be map[string]struct{}
|
||||||
lk sync.RWMutex
|
lk sync.RWMutex
|
||||||
size int
|
size int
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user