Skip to content

Commit

Permalink
skip appending deleted message without error
Browse files Browse the repository at this point in the history
  • Loading branch information
logica0419 committed Jan 13, 2024
1 parent 13fc698 commit 9f230b5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions service/search/es_result.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
package search

import (
"fmt"

"github.com/gofrs/uuid"
"github.com/samber/lo"

Expand Down Expand Up @@ -69,7 +67,7 @@ func (e *esEngine) parseResultFromResponse(searchRes esSearchResponse) (Result,
for _, id := range messageIDs {
msg, ok := messagesMap[id]
if !ok {
return nil, fmt.Errorf("message %v not found", id)
continue
}
r.messages = append(r.messages, msg)
}
Expand Down

0 comments on commit 9f230b5

Please sign in to comment.