Skip to content

Commit

Permalink
Merge pull request #205 from nats-io/fix-lint
Browse files Browse the repository at this point in the history
Fix lint
  • Loading branch information
wallyqs authored Feb 2, 2023
2 parents f19a6c9 + 575399e commit 7e1c1b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions collector/jsz.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ func (nc *jszCollector) Collect(ch chan<- prometheus.Metric) {
var consumerName, consumerDesc, consumerLeader string
var isMetaLeader, isStreamLeader, isConsumerLeader string
var accountName string
var accountId string
var accountID string

serverID = server.ID
serverName = varz.Name
Expand Down Expand Up @@ -329,7 +329,7 @@ func (nc *jszCollector) Collect(ch chan<- prometheus.Metric) {

for _, account := range resp.AccountDetails {
accountName = account.Name
accountId = account.Id
accountID = account.Id
for _, stream := range account.Streams {
streamName = stream.Name
if stream.Cluster != nil {
Expand All @@ -347,7 +347,7 @@ func (nc *jszCollector) Collect(ch chan<- prometheus.Metric) {
// Server Labels
serverID, serverName, clusterName, jsDomain, clusterLeader, isMetaLeader,
// Stream Labels
accountName, accountId, streamName, streamLeader, isStreamLeader)
accountName, accountID, streamName, streamLeader, isStreamLeader)
}
ch <- streamMetric(nc.streamMessages, float64(stream.State.Msgs))
ch <- streamMetric(nc.streamBytes, float64(stream.State.Bytes))
Expand Down Expand Up @@ -376,7 +376,7 @@ func (nc *jszCollector) Collect(ch chan<- prometheus.Metric) {
// Server Labels
serverID, serverName, clusterName, jsDomain, clusterLeader, isMetaLeader,
// Stream Labels
accountName, accountId, streamName, streamLeader, isStreamLeader,
accountName, accountID, streamName, streamLeader, isStreamLeader,
// Consumer Labels
consumerName, consumerLeader, isConsumerLeader, consumerDesc,
)
Expand Down

0 comments on commit 7e1c1b9

Please sign in to comment.