Skip to content

Commit

Permalink
fixed NewHostResolveCheck README
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarkhas committed May 24, 2021
1 parent c18b328 commit 2143a4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Creating a host lookup check is easy:
```go
// Schedule a host resolution check for `example.com`, requiring at least one results, and running every 10 sec
h.RegisterCheck(
checks.NewHostResolveCheck("example.com", 200*time.Millisecond, 1),
checks.NewHostResolveCheck("example.com", 1),
gosundheit.ExecutionPeriod(10 * time.Second),
)
```
Expand All @@ -122,7 +122,7 @@ func ReverseDNLookup(ctx context.Context, addr string) (resolvedCount int, err e
//...

h.RegisterCheck(
checks.NewResolveCheck(ReverseDNLookup, "127.0.0.1", 200*time.Millisecond, 3),
checks.NewResolveCheck(ReverseDNLookup, "127.0.0.1", 3),
gosundheit.ExecutionPeriod(10 * time.Second),
gosundheit.ExecutionTimeout(1*time.Second)
)
Expand Down

0 comments on commit 2143a4c

Please sign in to comment.