From df59fcf058ba36e4a326110e3f68aed10dc72a83 Mon Sep 17 00:00:00 2001 From: Tim Vaillancourt Date: Fri, 4 Oct 2024 18:09:24 +0200 Subject: [PATCH] Update go/vt/throttler/replication_lag_cache.go Co-authored-by: Matt Lord Signed-off-by: Tim Vaillancourt --- go/vt/throttler/replication_lag_cache.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/go/vt/throttler/replication_lag_cache.go b/go/vt/throttler/replication_lag_cache.go index ab26c0bc6b8..d47b82474ac 100644 --- a/go/vt/throttler/replication_lag_cache.go +++ b/go/vt/throttler/replication_lag_cache.go @@ -92,8 +92,8 @@ func (c *replicationLagCache) maxLag() (maxLag uint32) { continue } - entry, ok := c.entries[key] - if !ok { + entry := c.entries[key] + if entry == nil { continue }