Skip to content

Commit d93746e

Browse files
committed
delete gateways from nackStateStore on removeNack when they have no remaining nacks
Signed-off-by: Joe McGuire <[email protected]>
1 parent 252fa09 commit d93746e

File tree

1 file changed

+3
-0
lines changed
  • internal/kgateway/agentgatewaysyncer/nack

1 file changed

+3
-0
lines changed

internal/kgateway/agentgatewaysyncer/nack/handler.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,4 +133,7 @@ func (h *NackHandler) removeNack(gateway types.NamespacedName, nackID string) {
133133
return
134134
}
135135
delete(h.nackStateStore[gateway], nackID)
136+
if len(h.nackStateStore[gateway]) == 0 {
137+
delete(h.nackStateStore, gateway)
138+
}
136139
}

0 commit comments

Comments
 (0)