Skip to content

Commit

Permalink
Add comment for utility func
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
  • Loading branch information
Jarema committed Jan 23, 2023
1 parent e8597db commit 82ffb54
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server/consumer.go
Expand Up @@ -4600,6 +4600,8 @@ func subjectSliceEqual(slice1 []string, slice2 []string) bool {
}

// Utility for simpler if conditions in Consumer config checks.
// In future iteration, we can immediately create `o.subjf` and
// use it to validate things.
func subjectFilters(filter string, filters []string) []string {
if len(filters) == 0 {
return []string{filter}
Expand Down

0 comments on commit 82ffb54

Please sign in to comment.