Packages
spawn_statestores
1.2.2
2.0.0-RC9
2.0.0-RC8
2.0.0-RC7
2.0.0-RC6
2.0.0-RC5
2.0.0-RC4
2.0.0-RC3
2.0.0-RC2
2.0.0-RC14
2.0.0-RC13
2.0.0-RC12
2.0.0-RC11
2.0.0-RC10
2.0.0-RC1
1.4.3
1.4.2
1.4.1
1.4.0
1.3.3
1.3.2
1.3.1
1.3.0
1.2.2
1.2.1
1.2.0
1.1.1
1.1.0
1.0.1
1.0.0
1.0.0-rc4
1.0.0-rc3
1.0.0-rc2
1.0.0-rc16
1.0.0-rc15
1.0.0-rc14
1.0.0-rc13
1.0.0-rc1
1.0.0-rc.38
1.0.0-rc.37
1.0.0-rc.36
1.0.0-rc.35
1.0.0-rc.34
1.0.0-rc.33
1.0.0-rc.32
1.0.0-rc.31
1.0.0-rc.30
1.0.0-rc.29
1.0.0-rc.28
1.0.0-rc.27
1.0.0-rc.26
1.0.0-rc.25
1.0.0-rc.24
1.0.0-rc.23
1.0.0-rc.22
1.0.0-rc.21
1.0.0-rc.20
1.0.0-rc.19
1.0.0-rc.18
1.0.0-rc.17
1.0.0-beta1
0.6.3
0.6.2
0.6.1
0.6.0
0.5.5
0.5.4
0.5.3
0.5.1
0.5.0
0.5.0-rc.13
0.5.0-rc.12
0.5.0-rc.11
0.5.0-rc.10
0.5.0-rc.9
0.5.0-rc.8
0.5.0-rc.7
0.5.0-rc.6
0.5.0-rc.5
0.5.0-rc.3
0.5.0-alpha.13
0.5.0-alpha.12
0.5.0-alpha.11
0.5.0-alpha.10
0.5.0-alpha.9
0.5.0-alpha.6
0.5.0-alpha.5
0.5.0-alpha.4
0.5.0-alpha.3
0.5.0-alpha.2
0.5.0-alpha.1
0.1.0
Spawn Statestores is the storage lib for the Spawn Actors System
Current section
91 Versions
Jump to
Current section
91 Versions
Compare versions
6
files changed
+14
additions
-14
deletions
| @@ -12,7 +12,7 @@ by adding `statestores` to your list of dependencies in `mix.exs`: | |
| 12 12 | ```elixir |
| 13 13 | def deps do |
| 14 14 | [ |
| 15 | - {:spawn_statestores, "~> 1.1.1"} |
| 15 | + {:spawn_statestores, "~> 1.2.2"} |
| 16 16 | ] |
| 17 17 | end |
| 18 18 | ``` |
| @@ -2,7 +2,7 @@ | |
| 2 2 | {<<"build_tools">>,[<<"mix">>]}. |
| 3 3 | {<<"description">>, |
| 4 4 | <<"Spawn Statestores is the storage lib for the Spawn Actors System">>}. |
| 5 | - {<<"elixir">>,<<"~> 1.14">>}. |
| 5 | + {<<"elixir">>,<<"~> 1.15">>}. |
| 6 6 | {<<"files">>, |
| 7 7 | [<<"lib">>,<<"lib/statestores">>,<<"lib/statestores/util.ex">>, |
| 8 8 | <<"lib/statestores/migrator">>,<<"lib/statestores/migrator/migrator.ex">>, |
| @@ -67,5 +67,10 @@ | |
| 67 67 | {<<"name">>,<<"ecto_sql">>}, |
| 68 68 | {<<"optional">>,false}, |
| 69 69 | {<<"repository">>,<<"hexpm">>}, |
| 70 | - {<<"requirement">>,<<"~> 3.10">>}]]}. |
| 71 | - {<<"version">>,<<"1.2.1">>}. |
| 70 | + {<<"requirement">>,<<"~> 3.10">>}], |
| 71 | + [{<<"app">>,<<"jason">>}, |
| 72 | + {<<"name">>,<<"jason">>}, |
| 73 | + {<<"optional">>,false}, |
| 74 | + {<<"repository">>,<<"hexpm">>}, |
| 75 | + {<<"requirement">>,<<"~> 1.3">>}]]}. |
| 76 | + {<<"version">>,<<"1.2.2">>}. |
| @@ -12,7 +12,7 @@ defmodule Statestores.Manager.StateManager do | |
| 12 12 | def load_all(id), do: load_snapshot_adapter().get_all_snapshots_by_key(id) |
| 13 13 | |
| 14 14 | def load_by_interval(id, time_start, time_end), |
| 15 | - do: load_snapshot_adapter().get_snapshots_by_interval() |
| 15 | + do: load_snapshot_adapter().get_snapshots_by_interval(id, time_start, time_end) |
| 16 16 | |
| 17 17 | def save(event), do: load_snapshot_adapter().save(event) |
| 18 18 | end |
| @@ -38,7 +38,7 @@ defmodule Statestores.Supervisor do | |
| 38 38 | end |
| 39 39 | |
| 40 40 | def maybe_add_native_children(children, Statestores.Adapters.NativeSnapshotAdapter) do |
| 41 | - children ++ Statestores.Adapters.Native.Children.get_children() |
| 41 | + children ++ Kernel.apply(Statestores.Adapters.Native.Children, :get_children, []) |
| 42 42 | end |
| 43 43 | |
| 44 44 | def maybe_add_native_children(children, _), do: children |
| @@ -19,10 +19,4 @@ defmodule Statestores.Vault do | |
| 19 19 | |
| 20 20 | {:ok, config} |
| 21 21 | end |
| 22 | - |
| 23 | - defp decode_env!(var) do |
| 24 | - var |
| 25 | - |> System.get_env() |
| 26 | - |> Base.decode64!() |
| 27 | - end |
| 28 22 | end |
Loading more files…