diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-04-17 19:11:46 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-04-17 19:11:46 +0800 |
commit | 4afc22ba6e79fe951256251444b4a5b8d38b50fb (patch) | |
tree | dff06f8e9569293df1a20d6b38cc76c42e31a236 /whisper/whisper.go | |
parent | bd14bd6c5b8fcfb2430720da58de152dbbcb84ab (diff) | |
download | dexon-4afc22ba6e79fe951256251444b4a5b8d38b50fb.tar dexon-4afc22ba6e79fe951256251444b4a5b8d38b50fb.tar.gz dexon-4afc22ba6e79fe951256251444b4a5b8d38b50fb.tar.bz2 dexon-4afc22ba6e79fe951256251444b4a5b8d38b50fb.tar.lz dexon-4afc22ba6e79fe951256251444b4a5b8d38b50fb.tar.xz dexon-4afc22ba6e79fe951256251444b4a5b8d38b50fb.tar.zst dexon-4afc22ba6e79fe951256251444b4a5b8d38b50fb.zip |
whisper: cleanup lefover scoping
Diffstat (limited to 'whisper/whisper.go')
-rw-r--r-- | whisper/whisper.go | 4 |
1 files changed, 2 insertions, 2 deletions
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), } } |