diff --git a/core/bridges/cache.go b/core/bridges/cache.go index eb45d4ff624..b65a1667519 100644 --- a/core/bridges/cache.go +++ b/core/bridges/cache.go @@ -239,6 +239,10 @@ func (c *Cache) doBulkUpsert() { values := maps.Values(c.bridgeLastValueCache) c.mu.RUnlock() + if len(values) == 0 { + return + } + if err := c.ORM.BulkUpsertBridgeResponse(context.Background(), values); err != nil { c.lggr.Warnf("bulk upsert of bridge responses failed: %s", err.Error()) }