Skip to content

Commit 6ab1b55

Browse files
fix: increase timeout for health check, call website (#664)
1 parent fbe16e6 commit 6ab1b55

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

application/server/server.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -440,9 +440,9 @@ func initializedHandler(srv *jrpc2.Server) handler.Func {
440440

441441
func startOfflineDetection(c *config.Config) {
442442
go func() {
443-
timeout := time.Second * 2
443+
timeout := time.Second * 10
444444
client := c.Engine().GetNetworkAccess().GetUnauthorizedHttpClient()
445-
client.Timeout = timeout
445+
client.Timeout = timeout - 1
446446

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

455455
for {
456-
u := c.SnykApi()
456+
u := c.SnykUi()
457457
response, err := client.Get(u)
458458
if err != nil {
459459
if !c.Offline() {

0 commit comments

Comments
 (0)