From 2143a4cc4b628c301c39d8dc16fb48930ebe7e8a Mon Sep 17 00:00:00 2001 From: "dan.markhasin" Date: Mon, 24 May 2021 17:20:57 +0300 Subject: [PATCH] fixed NewHostResolveCheck README --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 07fa22a..ad9fda3 100644 --- a/README.md +++ b/README.md @@ -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), ) ``` @@ -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) )