Skip to content

Commit 0a3eb16

Browse files
armrumnencia
authored andcommitted
refactor: use codes.OutOfRange
Signed-off-by: Armando Ruocco <[email protected]>
1 parent 37439ea commit 0a3eb16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/cnpgi/common/errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
)
99

1010
// ErrEndOfWALStreamReached is returned when end of WAL is detected in the cloud archive.
11-
var ErrEndOfWALStreamReached = status.Errorf(codes.NotFound, "end of WAL reached")
11+
var ErrEndOfWALStreamReached = status.Errorf(codes.OutOfRange, "end of WAL reached")
1212

1313
// ErrMissingPermissions is raised when the sidecar has no
1414
// permission to download the credentials needed to reach

0 commit comments

Comments
 (0)