Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: replace map + mutex with sync.Map #221

Closed
wants to merge 1 commit into from

Conversation

kilosonc
Copy link
Collaborator

Description of your changes

Fixes #

I have:

  • Read and followed Horizon's contribution process.
  • Run make build && make lint to ensure this PR is ready for review.

How has this code been tested

Special notes for your reviewer

@@ -136,7 +108,7 @@ func NewRegionInformers(regionMgr manager.Manager, defaultResync time.Duration)
return &f
}

func (f *RegionInformers) NewRegionInformers(region *models.Region) error {
func (f *RegionInformers) NewRegionInformer(region *models.Region) error {
Copy link

Choose a reason for hiding this comment

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

Method RegionInformers.NewRegionInformer has 7 return statements (exceeds 4 allowed).

Copy link

codeclimate bot commented Apr 24, 2024

Code Climate has analyzed commit baf6c7e and detected 6 issues on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 4
Duplication 2

The test coverage on the diff in this pull request is 100.0% (60% is the threshold).

This pull request will bring the total coverage in the repository to 66.4%.

View more on Code Climate.

Copy link

This issue is stale because it has been open 30 days with no activity.

@github-actions github-actions bot added the no-pr-activity This pr is outdated label May 24, 2024
Copy link

This PR was closed because it has been stalled for 5 days with no activity. You can reopen it if you want.

@github-actions github-actions bot closed this May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-pr-activity This pr is outdated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant