Skip to content

Commit

Permalink
Speed up tcp checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Kashkovsky committed Apr 14, 2022
1 parent 75cfdae commit 92fed51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/tester.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ func (t *Tester) Test(url *url.URL) {
httpStatus: status,
duration: strconv.FormatInt(duration.Milliseconds(), 10) + "ms",
}
time.Sleep(t.testInterval)
}
time.Sleep(t.testInterval)
}
}

func (t *Tester) tcp(url *url.URL) int {
tp := NewTransport(t.requestTimeout)
tp := NewTransport(time.Second)
pass := 0
for i := 0; i < 10; i++ {
_, err := tp.Dial(url.Scheme, url.Host)
Expand Down
Binary file modified monitor
Binary file not shown.

0 comments on commit 92fed51

Please sign in to comment.