-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The server consumer creation code is picky and does indeed not accept a request send to the ExT subject if that request specifies the subject filter in the array (even if there is only one entry in the array).
- Loading branch information
Showing
1 changed file
with
3 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2895,7 +2895,9 @@ func (mset *stream) setSourceConsumer(iname string, seq uint64, startTime time.T | |
subject = fmt.Sprintf(JSApiConsumerCreateExT, si.name, req.Config.Name, req.Config.FilterSubject) | ||
} else if len(req.Config.FilterSubjects) == 1 { | ||
req.Config.Name = fmt.Sprintf("src-%s", createConsumerName()) | ||
subject = fmt.Sprintf(JSApiConsumerCreateExT, si.name, req.Config.Name, req.Config.FilterSubjects[0]) | ||
req.Config.FilterSubject = req.Config.FilterSubjects[0] | ||
req.Config.FilterSubjects = []string{} | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jnmoyne
Author
Contributor
|
||
subject = fmt.Sprintf(JSApiConsumerCreateExT, si.name, req.Config.Name, req.Config.FilterSubject) | ||
} else { | ||
subject = fmt.Sprintf(JSApiConsumerCreateT, si.name) | ||
} | ||
|
Just make nil?