Skip to content

Commit

Permalink
better use of duration
Browse files Browse the repository at this point in the history
  • Loading branch information
nicpottier committed Aug 21, 2017
1 parent 9a6a5d9 commit 7cf135e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion librato/librato.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func (c *Sender) Start() {
logrus.WithField("comp", "librato").Info("stopped")
return

case <-time.After(c.timeout * time.Second):
case <-time.After(c.timeout):
for i := 0; i < 4; i++ {
c.flush(250)
}
Expand Down
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (s *server) Start() error {
// configure librato if we have configuration options for it
host, _ := os.Hostname()
if s.config.LibratoUsername != "" {
librato.Default = librato.NewSender(s.waitGroup, s.config.LibratoUsername, s.config.LibratoToken, host, 5)
librato.Default = librato.NewSender(s.waitGroup, s.config.LibratoUsername, s.config.LibratoToken, host, time.Second*5)
librato.Default.Start()
}

Expand Down

0 comments on commit 7cf135e

Please sign in to comment.