mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 12:25:22 +02:00
fix(edgejobs): fix data race in edge jobs tasks collect EE-4766 (#8542)
This commit is contained in:
parent
2c247efd0f
commit
f9a09301a8
2 changed files with 49 additions and 36 deletions
|
@ -45,7 +45,7 @@ func EdgeGroupSet(edgeGroupIDs []portainer.EdgeGroupID) map[portainer.EdgeGroupI
|
|||
return set
|
||||
}
|
||||
|
||||
func GetEndpointsFromEdgeGroups(edgeGroupIDs []portainer.EdgeGroupID, datastore dataservices.DataStore) ([]portainer.EndpointID, error) {
|
||||
func GetEndpointsFromEdgeGroups(edgeGroupIDs []portainer.EdgeGroupID, datastore dataservices.DataStoreTx) ([]portainer.EndpointID, error) {
|
||||
endpoints, err := datastore.Endpoint().Endpoints()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue