[client] Remove Unauthenticated, PermissionDenied, and Unimplemented from permanent error handling

This commit is contained in:
Zoltán Papp
2026-03-31 15:31:46 +02:00
parent 863f1d88b8
commit a178ec785d

View File

@@ -116,8 +116,6 @@ func (c *GRPCClient) Receive(ctx context.Context, interval time.Duration, msgHan
switch s.Code() {
case codes.Canceled:
return backoff.Permanent(err)
case codes.Unauthenticated, codes.PermissionDenied, codes.Unimplemented:
return backoff.Permanent(err)
case codes.Internal:
log.Warnf("connection corrupt, attempting reconnection: %v", err)
// RST_STREAM/PROTOCOL_ERROR — connection is corrupt, recreate immediately