Skip to content

Commit 840dfbd

Browse files
hekikeGAlexIHU
authored andcommitted
feat(streaming): refactor
1 parent 413b5e3 commit 840dfbd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

openmeter/streaming/clickhouse/queryhelper.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,7 @@ func customersWhere(eventsTableName string, customers []streaming.Customer, quer
8484
}
8585

8686
// Add each subject key to the filter
87-
for _, subjectKey := range customer.GetUsageAttribution().SubjectKeys {
88-
subjects = append(subjects, subjectKey)
89-
}
87+
subjects = append(subjects, customer.GetUsageAttribution().SubjectKeys...)
9088
}
9189

9290
// If there are no subjects, we return an empty subject filter

0 commit comments

Comments
 (0)