IsUnrecoverable reports whether retrying with the same captured session token is futile. Only 401/403 qualify - the token is dead or the peer won't authorize it. 5xx, 429, network, and context errors fall through to backoff.
()
| 64 | // or the peer won't authorize it. 5xx, 429, network, and context |
| 65 | // errors fall through to backoff. |
| 66 | func (e *RelayDialError) IsUnrecoverable() bool { |
| 67 | return e.HTTPStatus == http.StatusUnauthorized || |
| 68 | e.HTTPStatus == http.StatusForbidden |
| 69 | } |
| 70 | |
| 71 | // MultiReplicaSubscribeConfig holds the dependencies for multi-replica chat |
| 72 | // subscription. ReplicaIDFn is called lazily because the |
no outgoing calls