Skip to content

Commit 26163f5

Browse files
committed
removed isProduction from client proxy code
1 parent 4dc2b67 commit 26163f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/client-proxy/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ func run() int {
183183
edgeApiStore.SetDraining()
184184

185185
// we should wait for health check manager to notice that we are not ready for new traffic
186-
if env.IsProduction() {
186+
if !env.IsDevelopment() {
187187
shutdownLogger.Info("waiting for draining state propagation", zap.Float64("wait_in_seconds", shutdownDrainingWait.Seconds()))
188188
time.Sleep(shutdownDrainingWait)
189189
}
@@ -203,7 +203,7 @@ func run() int {
203203
edgeApiStore.SetUnhealthy()
204204

205205
// wait for the health check manager to notice that we are not healthy at all
206-
if env.IsProduction() {
206+
if !env.IsDevelopment() {
207207
shutdownLogger.Info("waiting for unhealthy state propagation", zap.Float64("wait_in_seconds", shutdownUnhealthyWait.Seconds()))
208208
time.Sleep(shutdownUnhealthyWait)
209209
}

0 commit comments

Comments
 (0)