Skip to content

Commit

Permalink
Fix static checks issues
Browse files Browse the repository at this point in the history
  • Loading branch information
norkans7 committed Oct 12, 2023
1 parent ea99949 commit 0649534
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions librato.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ func NewCollector(username string, token string, source string, timeout time.Dur

// Start starts our librato sender, callers can use Stop to stop it
func (c *collector) Start() {
c.waitGroup.Add(1)
go func() {
c.waitGroup.Add(1)
defer c.waitGroup.Done()

slog.Info("started collector", "username", c.username, "comp", "librato")
Expand Down Expand Up @@ -112,12 +112,13 @@ func (c *collector) flush(count int) {
}

// read up to our count of gauges
readCounts:
for i := 0; i < count; i++ {
select {
case g := <-c.buffer:
reqPayload.Gauges = append(reqPayload.Gauges, g)
default:
break
break readCounts
}
}

Expand Down

0 comments on commit 0649534

Please sign in to comment.