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:
commit
ca29f475f0
@ -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{
|
||||
|
Loading…
Reference in New Issue
Block a user