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/whisper.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'whisper/whisper.go') diff --git a/whisper/whisper.go b/whisper/whisper.go index 48efff622..9317fad50 100644 --- a/whisper/whisper.go +++ b/whisper/whisper.go @@ -119,7 +119,7 @@ func (self *Whisper) Watch(options Filter) int { filter := filter.Generic{ Str1: string(crypto.FromECDSAPub(options.To)), Str2: string(crypto.FromECDSAPub(options.From)), - Data: NewTopicSet(options.Topics), + Data: newTopicSet(options.Topics), Fn: func(data interface{}) { options.Fn(data.(*Message)) }, @@ -281,7 +281,7 @@ func createFilter(message *Message, topics []Topic) filter.Filter { return filter.Generic{ Str1: string(crypto.FromECDSAPub(message.To)), Str2: string(crypto.FromECDSAPub(message.Recover())), - Data: NewTopicSet(topics), + Data: newTopicSet(topics), } } -- cgit v1.2.3