From bd14bd6c5b8fcfb2430720da58de152dbbcb84ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Fri, 17 Apr 2015 13:25:18 +0300 Subject: [PATCH] whisper: hide some internal types --- whisper/topic.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/whisper/topic.go b/whisper/topic.go index 7792e437fa..7c26cfba9b 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) }