From 4afc22ba6e79fe951256251444b4a5b8d38b50fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Fri, 17 Apr 2015 14:11:46 +0300 Subject: whisper: cleanup lefover scoping --- whisper/topic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'whisper/topic.go') diff --git a/whisper/topic.go b/whisper/topic.go index 7c26cfba9..a965c7cc2 100644 --- a/whisper/topic.go +++ b/whisper/topic.go @@ -52,7 +52,7 @@ func (self *Topic) String() string { 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{}{} -- cgit v1.2.3