Fix for issue in poolmgr fns caused by skipping address validation (#2441)

This commit is contained in:
Ankit Chawla
2022-06-13 15:09:29 +05:30
committed by GitHub
parent fa3347077a
commit a2b6f95656
+1 -1
View File
@@ -77,7 +77,7 @@ func (executor *Executor) getServiceForFunctionAPI(w http.ResponseWriter, r *htt
if err == nil {
// if a pod is already serving request then it already exists else validated
logger.Debug("from cache", zap.Int("active", active))
if active > 1 || et.IsValid(ctx, fsvc) {
if et.IsValid(ctx, fsvc) {
// Cached, return svc address
logger.Debug("served from cache", zap.String("name", fsvc.Name), zap.String("address", fsvc.Address))
executor.writeResponse(w, fsvc.Address, fn.ObjectMeta.Name)