Remove unnecessary call to `GetFilter`

This commit is contained in:
Pedro Pombeiro 2019-12-17 21:49:11 +01:00 committed by Pedro Pombeiro
parent a5cf17cf4b
commit 0cf24d2c3e
2 changed files with 0 additions and 10 deletions

View File

@ -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

View File

@ -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