nats-io / jsm.go

JetStream Management Library for Golang
Apache License 2.0
151 stars 26 forks source link

Fix consumer subject filters #501

Closed Jarema closed 10 months ago

Jarema commented 10 months ago

The FilterStreamBySubject was appending subjects instead of setting the passed value. Additionally, it was not resetting the other filter subject field. That could cause errors, as server denies consumer API calls with both FilterSubjectandFilterSubjectsset.

Signed-off-by: Tomasz Pietrek tomasz@nats.io