Skip to content
This repository has been archived by the owner on Jul 29, 2020. It is now read-only.

Fix govet errors in f5router.go #151

Merged
merged 1 commit into from Apr 4, 2018
Merged

Conversation

f5yacobucci
Copy link
Contributor

Problem: Go vet reported a lock being passed by copy.

Solution: Remove copying of lock and pass by pointer.

Fixes #150

Problem: Go vet reported a lock being passed by copy.

Solution: Remove copying of lock and pass by pointer.

Fixes F5Networks#150
@@ -634,7 +634,7 @@ func (r *F5Router) createResources() bigipResources.PartitionMap {

dataGroups := make(map[string]map[string]*bigipResources.InternalDataGroupRecord)
if r.c.BrokerMode {
brokerInternalDataGroup := populateBrokerDataGroup(r.bindIDRouteURIPlanNameMap)
brokerInternalDataGroup := populateBrokerDataGroup(&r.bindIDRouteURIPlanNameMap)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! I'm surprised this wasn't manifesting in any of our tests.

@f5yacobucci f5yacobucci merged commit 927817e into F5Networks:master Apr 4, 2018
f5yacobucci added a commit to f5yacobucci/cf-bigip-ctlr that referenced this pull request Apr 4, 2018
Fix govet errors in f5router.go

(cherry picked from commit 927817e)
f5yacobucci added a commit that referenced this pull request Apr 4, 2018
Merge pull request #151 from f5yacobucci/govet
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants