From a5490b83641b8a85a65aac26009dca2ea10c698d Mon Sep 17 00:00:00 2001 From: Arsen Musayelyan Date: Sat, 21 Aug 2021 20:35:21 -0700 Subject: [PATCH] Use new pair timeout option --- go.mod | 2 +- go.sum | 4 ++-- main.go | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index b0e349d..e03802c 100644 --- a/go.mod +++ b/go.mod @@ -19,7 +19,7 @@ require ( github.com/spf13/cast v1.4.1 // indirect github.com/spf13/cobra v1.2.1 github.com/spf13/viper v1.8.1 - go.arsenm.dev/infinitime v0.0.0-20210821070429-ea488067fb9b + go.arsenm.dev/infinitime v0.0.0-20210822032731-d228b6cf60f1 golang.org/x/sys v0.0.0-20210820121016-41cdb8703e55 // indirect golang.org/x/text v0.3.7 // indirect ) diff --git a/go.sum b/go.sum index 88f5fc3..844c319 100644 --- a/go.sum +++ b/go.sum @@ -287,8 +287,8 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k= -go.arsenm.dev/infinitime v0.0.0-20210821070429-ea488067fb9b h1:Wwj7F0gqYHUx+9H8fCCIy5JZTlCusJRpPuzeSFM0EoU= -go.arsenm.dev/infinitime v0.0.0-20210821070429-ea488067fb9b/go.mod h1:gaepaueUz4J5FfxuV19B4w5pi+V3mD0LTef50ryxr/Q= +go.arsenm.dev/infinitime v0.0.0-20210822032731-d228b6cf60f1 h1:Upswvnt1AxTfd6eBnhI8nYA/OqUoKUGVBTMNqaPAd0o= +go.arsenm.dev/infinitime v0.0.0-20210822032731-d228b6cf60f1/go.mod h1:gaepaueUz4J5FfxuV19B4w5pi+V3mD0LTef50ryxr/Q= go.etcd.io/etcd/api/v3 v3.5.0/go.mod h1:cbVKeC6lCfl7j/8jBhAK6aIYO9XOjdptoxU/nLQcPvs= go.etcd.io/etcd/client/pkg/v3 v3.5.0/go.mod h1:IJHfcCEKxYu1Os13ZdwCwIUTUVGYTSAM3YSwc9/Ac1g= go.etcd.io/etcd/client/v2 v2.305.0/go.mod h1:h9puh54ZTgAKtEbut2oe9P4L/oqKCVB6xsXlzd7alYQ= diff --git a/main.go b/main.go index 21749ee..1c82c26 100644 --- a/main.go +++ b/main.go @@ -56,6 +56,7 @@ func main() { // Connect to InfiniTime with default options dev, err := infinitime.Connect(&infinitime.Options{ AttemptReconnect: viper.GetBool("conn.reconnect"), + PairTimeout: infinitime.DefaultOptions.PairTimeout, }) if err != nil { log.Error().Err(err).Msg("Error connecting to InfiniTime")