Skip to content

Commit

Permalink
update to version 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
weixiyen committed Apr 3, 2017
1 parent 42f1702 commit 2628f5f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v 1.0.2

- Added ability to define a specific machine_id instead of using the node list index mechanism.

## v 1.0.1

- Introduced a helpful util function to get a snowflake for a specific time.
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Snowflake.Mixfile do
use Mix.Project

@version "1.0.1"
@version "1.0.2"
@url "https://github.com/blitzstudios/snowflake"
@maintainers ["Weixi Yen"]

Expand Down
8 changes: 8 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ config :snowflake,
epoch: 1142974214000 # don't change after you decide what your epoch is
```

Alternatively, you specify a specific machine_id

```elixir
config :snowflake,
machine_id: 23, # values are 0 thru 1023 nodes
epoch: 1142974214000 # don't change after you decide what your epoch is
```

Generating an ID is simple.

```elixir
Expand Down

0 comments on commit 2628f5f

Please sign in to comment.