We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbe16e6 commit 6ab1b55Copy full SHA for 6ab1b55
application/server/server.go
@@ -440,9 +440,9 @@ func initializedHandler(srv *jrpc2.Server) handler.Func {
440
441
func startOfflineDetection(c *config.Config) {
442
go func() {
443
- timeout := time.Second * 2
+ timeout := time.Second * 10
444
client := c.Engine().GetNetworkAccess().GetUnauthorizedHttpClient()
445
- client.Timeout = timeout
+ client.Timeout = timeout - 1
446
447
type logLevelConfigurable interface {
448
SetLogLevel(level zerolog.Level)
@@ -453,7 +453,7 @@ func startOfflineDetection(c *config.Config) {
453
}
454
455
for {
456
- u := c.SnykApi()
+ u := c.SnykUi()
457
response, err := client.Get(u)
458
if err != nil {
459
if !c.Offline() {
0 commit comments