aboutsummaryrefslogtreecommitdiffstats
path: root/whisper/topic.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-04-17 18:25:18 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-04-17 18:25:18 +0800
commitbd14bd6c5b8fcfb2430720da58de152dbbcb84ab (patch)
treedc86a1303f159f92af1dacd199684347f5e52bbf /whisper/topic.go
parente5a03eb0661a70c9a068fdf85f1cb31effbf26f5 (diff)
downloaddexon-bd14bd6c5b8fcfb2430720da58de152dbbcb84ab.tar
dexon-bd14bd6c5b8fcfb2430720da58de152dbbcb84ab.tar.gz
dexon-bd14bd6c5b8fcfb2430720da58de152dbbcb84ab.tar.bz2
dexon-bd14bd6c5b8fcfb2430720da58de152dbbcb84ab.tar.lz
dexon-bd14bd6c5b8fcfb2430720da58de152dbbcb84ab.tar.xz
dexon-bd14bd6c5b8fcfb2430720da58de152dbbcb84ab.tar.zst
dexon-bd14bd6c5b8fcfb2430720da58de152dbbcb84ab.zip
whisper: hide some internal types
Diffstat (limited to 'whisper/topic.go')
-rw-r--r--whisper/topic.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/whisper/topic.go b/whisper/topic.go
index 7792e437f..7c26cfba9 100644
--- a/whisper/topic.go
+++ b/whisper/topic.go
@@ -49,13 +49,13 @@ func (self *Topic) String() string {
}
// TopicSet represents a hash set to check if a topic exists or not.
-type TopicSet map[string]struct{}
+type topicSet map[string]struct{}
// NewTopicSet creates a topic hash set from a slice of topics.
-func NewTopicSet(topics []Topic) TopicSet {
+func NewTopicSet(topics []Topic) topicSet {
set := make(map[string]struct{})
for _, topic := range topics {
set[topic.String()] = struct{}{}
}
- return TopicSet(set)
+ return topicSet(set)
}