refactor: use codes.OutOfRange

Signed-off-by: Armando Ruocco <armando.ruocco@enterprisedb.com>
This commit is contained in:
Armando Ruocco 2025-09-24 15:53:50 +02:00 committed by Marco Nenciarini
parent 37439ea175
commit 0a3eb16d7b

View File

@ -8,7 +8,7 @@ import (
)
// ErrEndOfWALStreamReached is returned when end of WAL is detected in the cloud archive.
var ErrEndOfWALStreamReached = status.Errorf(codes.NotFound, "end of WAL reached")
var ErrEndOfWALStreamReached = status.Errorf(codes.OutOfRange, "end of WAL reached")
// ErrMissingPermissions is raised when the sidecar has no
// permission to download the credentials needed to reach