From c6037cde7444399151a0303fc5db86dce4f77c66 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 01:19:46 +0000 Subject: [PATCH] fix(deps): update module github.com/overmindtech/discovery to v0.33.1 (#353) * fix(deps): update module github.com/overmindtech/discovery to v0.33.1 * Fixed linting issues --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Dylan Ratcliffe --- adapters/main.go | 4 ++-- cmd/root.go | 6 ++++-- go.mod | 2 +- go.sum | 4 ++-- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/adapters/main.go b/adapters/main.go index 0eeb720..13ed98c 100644 --- a/adapters/main.go +++ b/adapters/main.go @@ -75,9 +75,9 @@ func InitializeEngine(ec *discovery.EngineConfig, reverseDNS bool) (*discovery.E }, } - e.AddAdapters(adapters...) + err = e.AddAdapters(adapters...) - return e, nil + return e, err } // newRdapClient Creates a new RDAP client using otelhttp.DefaultClient. rdap is suspected to not be thread safe, so we create a new client for each request diff --git a/cmd/root.go b/cmd/root.go index 95b199f..2d9b5a6 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -96,7 +96,9 @@ var rootCmd = &cobra.Command{ return nil } - e.EngineConfig.HeartbeatOptions.HealthCheck = healthCheck + if e.EngineConfig.HeartbeatOptions != nil { + e.EngineConfig.HeartbeatOptions.HealthCheck = healthCheck + } http.HandleFunc(healthCheckPath, func(rw http.ResponseWriter, r *http.Request) { err := healthCheck() if err == nil { @@ -163,7 +165,7 @@ var rootCmd = &cobra.Command{ }, } -// Execute adds all child commands to the root command and sets flags appropriately. +// Execute adds all child commands to the root command and sets flags appropriately.add // This is called by main.main(). It only needs to happen once to the rootCmd. func Execute() { if err := rootCmd.Execute(); err != nil { diff --git a/go.mod b/go.mod index 570d205..3efc7f7 100644 --- a/go.mod +++ b/go.mod @@ -10,7 +10,7 @@ require ( github.com/nats-io/jwt/v2 v2.7.2 // indirect github.com/nats-io/nkeys v0.4.8 // indirect github.com/openrdap/rdap v0.9.2-0.20240517203139-eb57b3a8dedd - github.com/overmindtech/discovery v0.32.2 + github.com/overmindtech/discovery v0.33.1 github.com/overmindtech/sdp-go v0.102.0 github.com/overmindtech/sdpcache v1.6.4 github.com/sirupsen/logrus v1.9.3 diff --git a/go.sum b/go.sum index df68855..eb4c337 100644 --- a/go.sum +++ b/go.sum @@ -84,8 +84,8 @@ github.com/nats-io/nuid v1.0.1 h1:5iA8DT8V7q8WK2EScv2padNa/rTESc1KdnPw4TC2paw= github.com/nats-io/nuid v1.0.1/go.mod h1:19wcPz3Ph3q0Jbyiqsd0kePYG7A95tJPxeL+1OSON2c= github.com/openrdap/rdap v0.9.2-0.20240517203139-eb57b3a8dedd h1:UuQycBx6K0lB0/IfHePshOYjlrptkF4FoApFP2Y4s3k= github.com/openrdap/rdap v0.9.2-0.20240517203139-eb57b3a8dedd/go.mod h1:391Ww1JbjG4FHOlvQqCd6n25CCCPE64JzC5cCYPxhyM= -github.com/overmindtech/discovery v0.32.2 h1:e2rU6d2s7zTS31qVI6dTL+/tg2RCg4bgr056mOImP2k= -github.com/overmindtech/discovery v0.32.2/go.mod h1:/mtLqJh6RKdh+V7RzFGhTOSTZTxfpmciBigvyRUSGOQ= +github.com/overmindtech/discovery v0.33.1 h1:9U/B85T50riHBLhH4S+UYNZO6FEzCuRfQcRvJHqFfFE= +github.com/overmindtech/discovery v0.33.1/go.mod h1:/mtLqJh6RKdh+V7RzFGhTOSTZTxfpmciBigvyRUSGOQ= github.com/overmindtech/sdp-go v0.102.0 h1:fIJo893+nhr5Wn9HmOM6afXUpUTYuQOJMC6O7Vs9YFY= github.com/overmindtech/sdp-go v0.102.0/go.mod h1:byGP2BXstnX3KeFLNyEbSLE75hv01EZhyU6QiKuiYb8= github.com/overmindtech/sdpcache v1.6.4 h1:MJoYBDqDE3s8FrRzZ0RPgFiH39HWI/Mv2ImH1NdLT8k=