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

Function badQueue

nats.go:4879–4881  ·  view source on GitHub ↗

badQueue will check a queue name for whitespace.

(qname string)

Source from the content-addressed store, hash-verified

4877
4878// badQueue will check a queue name for whitespace.
4879func badQueue(qname string) bool {
4880 return strings.ContainsAny(qname, " \t\r\n")
4881}
4882
4883// subscribe is the internal subscribe function that indicates interest in a subject.
4884func (nc *Conn) subscribe(subj, queue string, cb MsgHandler, ch chan *Msg, errCh chan (error), isSync bool, js *jsSub) (*Subscription, error) {

Callers 1

subscribeLockedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected