Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
torywheelwright committed Mar 29, 2024
1 parent 40374e5 commit 9ac282d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/oplog/tail.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ func (tailer *Tailer) unmarshalEntry(rawData bson.Raw) (timestamp *primitive.Tim

metricOplogEntriesBySize.WithLabelValues(database, status).Observe(messageLen)
metricMaxOplogEntryByMinute.Report(messageLen, database, status)
metricLastOplogEntryStaleness.Set(float64(uint32(time.Now().Unix()) - timestamp.T))
metricLastOplogEntryStaleness.Set(float64(time.Since(time.Unix(int64(timestamp.T), 0))))
}()

if len(entries) > 0 {
Expand Down
2 changes: 1 addition & 1 deletion lib/redispub/publisher.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ func publishSingleMessage(p *Publication, client redis.UniversalClient, prefix s
strings.Join(p.Channels, "$"), // ARGV[3], channels
).Result()

metricLastCommandDuration.Set(time.Now().Sub(start).Seconds())
metricLastCommandDuration.Set(time.Since(start).Seconds())
return err
}

Expand Down

0 comments on commit 9ac282d

Please sign in to comment.