Skip to content

Commit 0670668

Browse files
committed
change sseEnabled if statement
1 parent 7831859 commit 0670668

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/proxy/resync.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,9 +329,9 @@ func StartBackgroundLoops(ctx context.Context, cache *Cache, domainURL *url.URL,
329329

330330
if sseEnabled {
331331
go startAccessTokenValidation(ctx, cache, domainURL, httpClient, accessTokenCheckInterval)
332+
} else {
333+
go startAccessTokenValidation(ctx, cache, domainURL, httpClient, accessTokenCheckInterval)
334+
go startStaticSecretsRefresh(ctx, cache, domainURL, httpClient, staticSecretsRefreshInterval)
332335
}
333336

334-
go startAccessTokenValidation(ctx, cache, domainURL, httpClient, accessTokenCheckInterval)
335-
go startStaticSecretsRefresh(ctx, cache, domainURL, httpClient, staticSecretsRefreshInterval)
336-
337337
}

0 commit comments

Comments
 (0)