MCPcopy
hub / github.com/nats-io/nats.go / IgnoreAuthErrorAbort

Function IgnoreAuthErrorAbort

nats.go:1583–1588  ·  view source on GitHub ↗

IgnoreAuthErrorAbort opts out of the default connect behavior of aborting subsequent reconnect attempts if server returns the same auth error twice.

()

Source from the content-addressed store, hash-verified

1581// IgnoreAuthErrorAbort opts out of the default connect behavior of aborting
1582// subsequent reconnect attempts if server returns the same auth error twice.
1583func IgnoreAuthErrorAbort() Option {
1584 return func(o *Options) error {
1585 o.IgnoreAuthErrorAbort = true
1586 return nil
1587 }
1588}
1589
1590// SkipHostLookup is an Option to skip the host lookup when connecting to a server.
1591func SkipHostLookup() Option {

Callers 1

Calls

no outgoing calls

Tested by 1