Skip to content

Commit

Permalink
fixup! fixup! Use context.WithoutCancel in azbus
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Hewlett committed Sep 5, 2023
1 parent 37331df commit ce7bfbe
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion azbus/receiver.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package azbus

import (
"context"
"errors"
"fmt"
"sync"
"time"
Expand Down Expand Up @@ -153,7 +154,11 @@ func (r *Receiver) elapsed(ctx context.Context, count int, total int, maxDuratio
log.Infof("WARNING: both can be found in the helm chart for each service.")
}
if err != nil {
log.Infof("WARNING: processing msg %d duration %s returned error: %v", count, duration, err)
if errors.Is(err, ErrPeekLockTimeout) {
log.Infof("WARNING: processing msg %d duration %s returned error: %v", count, duration, err)
log.Infof("WARNING: please either enable SERVICEBUS_RENEW_LOCK or reduce SERVICEBUS_INCOMING_MESSAGES")
log.Infof("WARNING: both can be found in the helm chart for each service.")
}
}
return err

Expand Down

0 comments on commit ce7bfbe

Please sign in to comment.