Skip to content

Commit

Permalink
ingest: nack message
Browse files Browse the repository at this point in the history
  • Loading branch information
MalinAhlberg committed Nov 12, 2024
1 parent 7e1bfe8 commit 01f742d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sda/cmd/ingest/ingest.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,9 @@ func main() {
err = db.SetKeyHash(keyhash, fileID)
if err != nil {
log.Errorf("Key hash %s could not be set for fileID %s: (%s)", keyhash, fileID, err.Error())
if err = delivered.Nack(false, true); err != nil {
log.Errorf("Failed to Nack message, reason: (%s)", err.Error())
}

continue mainWorkLoop
}
Expand Down

0 comments on commit 01f742d

Please sign in to comment.