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

Excellent, but i have a confuse with the code #11

Open
zheng-ji opened this issue Aug 19, 2015 · 1 comment
Open

Excellent, but i have a confuse with the code #11

zheng-ji opened this issue Aug 19, 2015 · 1 comment

Comments

@zheng-ji
Copy link

what a nice code!
I have a confuse that Line 248 in consistent.go

hashes := c.sortedHashes[:0]

it seems that this line is not necessary ,maybe we could replace like the code below directly?

 hashes := []uint32 
@jian-en
Copy link

jian-en commented Mar 1, 2018

I think the original code keeps the original capacity?

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

2 participants