Skip to content

Commit

Permalink
fix: increase timeout for health check, call website (#664)
Browse files Browse the repository at this point in the history
  • Loading branch information
bastiandoetsch authored Sep 13, 2024
1 parent fbe16e6 commit 6ab1b55
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,9 +440,9 @@ func initializedHandler(srv *jrpc2.Server) handler.Func {

func startOfflineDetection(c *config.Config) {
go func() {
timeout := time.Second * 2
timeout := time.Second * 10
client := c.Engine().GetNetworkAccess().GetUnauthorizedHttpClient()
client.Timeout = timeout
client.Timeout = timeout - 1

type logLevelConfigurable interface {
SetLogLevel(level zerolog.Level)
Expand All @@ -453,7 +453,7 @@ func startOfflineDetection(c *config.Config) {
}

for {
u := c.SnykApi()
u := c.SnykUi()
response, err := client.Get(u)
if err != nil {
if !c.Offline() {
Expand Down

0 comments on commit 6ab1b55

Please sign in to comment.