Skip to content

Commit

Permalink
fix(deps): update module github.com/overmindtech/discovery to v0.33.1 (
Browse files Browse the repository at this point in the history
…#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 <[email protected]>
  • Loading branch information
renovate[bot] and dylanratcliffe authored Dec 9, 2024
1 parent f15ee26 commit c6037cd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions adapters/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down

0 comments on commit c6037cd

Please sign in to comment.