Send updated events on state updates (#1819)

This commit is contained in:
Benjamin Pracht
2023-06-22 09:20:58 -07:00
committed by GitHub
parent c38791ff0a
commit 1f6efedd31
3 changed files with 10 additions and 3 deletions
+7
View File
@@ -143,6 +143,13 @@ func (s *IOInfoService) UpdateIngressState(ctx context.Context, req *rpc.UpdateI
logger.Infow("ingress buffering", "ingressID", req.IngressId)
}
} else {
// Status didn't change, send Updated event
info.State = req.State
s.telemetry.IngressUpdated(ctx, info)
logger.Infow("ingress updated", "ingressID", req.IngressId)
}
return &emptypb.Empty{}, nil