1
0
mirror of https://github.com/rancher/steve.git synced 2025-08-01 23:03:28 +00:00

Merge pull request #162 from JonCrowther/count-race-condition

Fix race condition in debounceCounts
This commit is contained in:
Jonathan Crowther 2024-03-14 10:52:28 -04:00 committed by GitHub
commit ca29f475f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -181,7 +181,7 @@ func (s *Store) Watch(apiOp *types.APIRequest, schema *types.APISchema, w types.
counts[schema.ID] = itemCount
changedCount := map[string]ItemCount{
schema.ID: itemCount,
schema.ID: *itemCount.DeepCopy(),
}
result <- Count{