提交 19764880 作者: Brian Tiger Chow 提交者: Juan Batiz-Benet

doc: peerset fixme

not changing this because i don't want to write a test for it now

License: MIT
Signed-off-by: 's avatarBrian Tiger Chow <brian@perfmode.com>
上级 45faa4d7
...@@ -7,7 +7,7 @@ import ( ...@@ -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
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论