Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwinchester committed Apr 18, 2024
1 parent 832cd89 commit b84782f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ The package can be installed by adding `uuid_v7` to your list of dependencies in
```elixir
def deps do
[
{:uuid_v7, "~> 0.4.1"}
{:uuid_v7, "~> 0.4.2"}
]
end
```
Expand Down
5 changes: 3 additions & 2 deletions lib/clock.ex
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ defmodule UUIDv7.Clock do
# by 1 millisecond instead to preserve order.
clock =
with @threshold <- update_counter(current_ts, seed) do
update_counter(current_ts + 1, seed)
:atomics.put(timestamp_ref, 1, current_ts + 1)
next_ts = current_ts + 1
:atomics.put(timestamp_ref, 1, next_ts)
update_counter(next_ts, seed)
end

{current_ts, <<clock::big-unsigned-18>>}
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 UUIDv7.MixProject do
use Mix.Project

@version "0.4.1"
@version "0.4.2"

@repo_url "https://github.com/ryanwinchester/uuidv7"

Expand Down

0 comments on commit b84782f

Please sign in to comment.