Skip to content

Commit

Permalink
Make session timeout and command timeout same as timeout config
Browse files Browse the repository at this point in the history
  • Loading branch information
treydock committed Mar 26, 2020
1 parent bead17a commit 551388b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion collector/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ func (c *Collector) collect() Metric {

select {
case <-c1:
case <-time.After(time.Duration(c.target.Timeout+2) * time.Second):
case <-time.After(time.Duration(c.target.Timeout) * time.Second):
timeout = true
close(c1)
metric.FailureReason = "timeout"
Expand Down

0 comments on commit 551388b

Please sign in to comment.