MCPcopy Create free account
hub / github.com/coder/coder / IsUnrecoverable

Method IsUnrecoverable

enterprise/coderd/x/chatd/chatd.go:66–69  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

64// or the peer won't authorize it. 5xx, 429, network, and context
65// errors fall through to backoff.
66func (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

Callers 2

Calls

no outgoing calls

Tested by 1