-
Notifications
You must be signed in to change notification settings - Fork 12
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
Elixir Implementation #23
Conversation
I wasn't supposed to encode the snowflake in the secure ids, fixed now!
Didn't notice this in the Rust implementation (yes, I used the Rust impl as my reference)
Credo is a static analysis tool. https://github.com/rrrene/credo
Credo threw a couple refactor suggestions and I have updated the modules
Finished everything in the TODO list! Other stuff I did:
|
Found out that some generated snowflakes aren't integers, they're instead strings
If there are any tests I should add, please mention it. |
How did I not catch this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, the Pika.Utils.get_mac_address/0
fails on my Mac because :hwaddr
doesn't exist on some interfaces, e.g: {~c"stf0", [flags: []]}
, which causes the first list element to be nil
and errors out the map_join
.
Ah, on my Windows machine it worked, I'll have to find a work around to get |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thank you for the PR, this will be very useful.
Also, please make sure to push the most recent changes to hex.pm!
I've published the changes under version 0.1.3 |
I haven't yet published this package on hex.pm, I want to make sure everything's right before I do.TODO: