Skip to content

Commit

Permalink
Merge pull request #150 from Interhyp/fix/approvers
Browse files Browse the repository at this point in the history
RELTEC-11181: Fix concurrent map write
  • Loading branch information
Roshick authored May 22, 2023
2 parents 9a5fc85 + 961c954 commit 11816dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/service/cache/deepcopy.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func deepCopyRepositoryConfiguration(original *openapi.RepositoryConfigurationDt
return nil
}

firstLevelCopy := original
firstLevelCopy := *original

if firstLevelCopy.Approvers != nil {
approversCopy := make(map[string][]string)
Expand All @@ -75,7 +75,7 @@ func deepCopyRepositoryConfiguration(original *openapi.RepositoryConfigurationDt
firstLevelCopy.Approvers = &approversCopy
}

return firstLevelCopy
return &firstLevelCopy
}

// --- helpers ---
Expand Down

0 comments on commit 11816dc

Please sign in to comment.