mirror of
https://github.com/netbirdio/netbird.git
synced 2026-07-22 05:53:39 -04:00
[client] Remove Unauthenticated, PermissionDenied, and Unimplemented from permanent error handling
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user