diff --git a/server/sublist.go b/server/sublist.go index 75d3710c..fd4cc12f 100644 --- a/server/sublist.go +++ b/server/sublist.go @@ -83,7 +83,7 @@ func NewSublist() *Sublist { // Insert adds a subscription into the sublist func (s *Sublist) Insert(sub *subscription) error { // copy the subject since we hold this and this might be part of a large byte slice. - subject := string(append([]byte(nil), sub.subject...)) + subject := string(sub.subject) tsa := [32]string{} tokens := tsa[:0] start := 0