Remove unnecessary call to `GetFilter`
This commit is contained in:
parent
a5cf17cf4b
commit
0cf24d2c3e
|
@ -262,11 +262,6 @@ func (a *WhisperServiceTransport) RetrieveRawAll() (map[Filter][]*types.Message,
|
||||||
|
|
||||||
allFilters := a.filters.Filters()
|
allFilters := a.filters.Filters()
|
||||||
for _, filter := range allFilters {
|
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)
|
msgs, err := a.shhAPI.GetFilterMessages(filter.FilterID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
continue
|
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()
|
allFilters := a.filters.Filters()
|
||||||
for _, filter := range allFilters {
|
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)
|
msgs, err := a.shhAPI.GetFilterMessages(filter.FilterID)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in New Issue