Remove unnecessary call to GetFilter
This commit is contained in:
parent
a5cf17cf4b
commit
0cf24d2c3e
2 changed files with 0 additions and 10 deletions
|
@ -262,11 +262,6 @@ func (a *WhisperServiceTransport) RetrieveRawAll() (map[Filter][]*types.Message,
|
|||
|
||||
allFilters := a.filters.Filters()
|
||||
for _, filter := range allFilters {
|
||||
f := a.shh.GetFilter(filter.FilterID)
|
||||
if f == nil {
|
||||
return nil, errors.New("failed to return a filter")
|
||||
}
|
||||
|
||||
msgs, err := a.shhAPI.GetFilterMessages(filter.FilterID)
|
||||
if err != nil {
|
||||
continue
|
||||
|
|
5
vendor/github.com/status-im/status-go/protocol/transport/whisper/whisper_service.go
generated
vendored
5
vendor/github.com/status-im/status-go/protocol/transport/whisper/whisper_service.go
generated
vendored
|
@ -262,11 +262,6 @@ func (a *WhisperServiceTransport) RetrieveRawAll() (map[Filter][]*types.Message,
|
|||
|
||||
allFilters := a.filters.Filters()
|
||||
for _, filter := range allFilters {
|
||||
f := a.shh.GetFilter(filter.FilterID)
|
||||
if f == nil {
|
||||
return nil, errors.New("failed to return a filter")
|
||||
}
|
||||
|
||||
msgs, err := a.shhAPI.GetFilterMessages(filter.FilterID)
|
||||
if err != nil {
|
||||
continue
|
||||
|
|
Loading…
Reference in a new issue