mirror of
https://github.com/rancher/steve.git
synced 2025-08-16 21:36:26 +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
|
counts[schema.ID] = itemCount
|
||||||
changedCount := map[string]ItemCount{
|
changedCount := map[string]ItemCount{
|
||||||
schema.ID: itemCount,
|
schema.ID: *itemCount.DeepCopy(),
|
||||||
}
|
}
|
||||||
|
|
||||||
result <- Count{
|
result <- Count{
|
||||||
|
Loading…
Reference in New Issue
Block a user