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

some node will pass to f() function many times, is this a bug or a feature? #423

Open
sunfeilong opened this issue Aug 16, 2022 · 0 comments

Comments

@sunfeilong
Copy link

        var nodes []*Node
	for x := range h.buckets {
		b := h.initBucket(uint32(x))

		b.mu.Lock()
		nodes = append(nodes, b.nodes...)
		b.mu.Unlock()
		f(nodes)
	}
@sunfeilong sunfeilong changed the title some node will pass to f() function manytimes, is this a bug or a feature? some node will pass to f() function many times, is this a bug or a feature? Aug 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant