badQueue will check a queue name for whitespace.
(qname string)
| 4877 | |
| 4878 | // badQueue will check a queue name for whitespace. |
| 4879 | func 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. |
| 4884 | func (nc *Conn) subscribe(subj, queue string, cb MsgHandler, ch chan *Msg, errCh chan (error), isSync bool, js *jsSub) (*Subscription, error) { |