189 case MSG_PAYLOAD:
190 if c.msgBuf != nil {
...
200 c.msgBuf = c.msgBuf[:start+toCopy]
201 copy(c.msgBuf[start:], buf[i:i+toCopy])
202 // Update our index
203 i = (i + toCopy) - 1
204 } else {
205 // Fall back to append if needed.
206 c.msgBuf = append(c.msgBuf, b)
207 }
1034 // Check if published subject is allowed if we have permissions in place.
1035 if c.perms != nil {
1036 allowed, ok := c.perms.pcache[string(c.pa.subject)]
1083 if genid == c.cache.genid && c.cache.results != nil {
1084 r, ok = c.cache.results[string(c.pa.subject)]
1085 } else {
1086 // reset
1087 c.cache.results = make(map[string]*SublistResult)
1088 c.cache.genid = genid
1089 }
1090
1091 if !ok {
1092 subject := string(c.pa.subject)
1093 r = srv.sl.Match(subject)
1094 c.cache.results[subject] = r