Skip to content

Commit

Permalink
fix: don't log nil error returned when the cache terminates
Browse files Browse the repository at this point in the history
Signed-off-by: Clément Nussbaumer <[email protected]>
  • Loading branch information
clementnuss committed Feb 6, 2024
1 parent 92b4922 commit 8d891b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func main() {
}

go func() {
if err = ca.Start(ctx); !errors.Is(err, context.Canceled) {
if err = ca.Start(ctx); err != nil && !errors.Is(err, context.Canceled) {
log.Printf("client cache error: %s", err)
cancel()
}
Expand Down

0 comments on commit 8d891b6

Please sign in to comment.