mirror of
https://github.com/rancher/steve.git
synced 2025-08-01 23:03:28 +00:00
Fix data race
This commit is contained in:
parent
3943409601
commit
2dfb9be3d5
@ -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