Skip to content

Commit 6fc91d0

Browse files
author
ttt161
committed
TECH-61: bump progressor
1 parent d26a753 commit 6fc91d0

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

apps/hg_progressor/src/hg_progressor.erl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ call_automaton('GetMachine', {MachineDesc}) ->
6464
Req = #{
6565
ns => erlang:binary_to_atom(NS),
6666
id => ID,
67-
args => unmarshal(range, Range)
67+
range => unmarshal(range, Range)
6868
},
6969
case progressor:get(Req) of
7070
{ok, Process} ->
@@ -383,11 +383,11 @@ unmarshal(remove_action, #mg_stateproc_RemoveAction{}) ->
383383
true;
384384
unmarshal(range, undefined) ->
385385
#{};
386-
%% TODO backward direction
387-
unmarshal(range, #mg_stateproc_HistoryRange{'after' = Offset, limit = Limit}) ->
386+
unmarshal(range, #mg_stateproc_HistoryRange{'after' = Offset, limit = Limit, direction = Direction}) ->
388387
genlib_map:compact(#{
389388
offset => Offset,
390-
limit => Limit
389+
limit => Limit,
390+
direction => Direction
391391
}).
392392

393393
format_version(#{<<"format_version">> := Version}) ->

rebar.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
{fault_detector_proto, {git, "https://github.com/valitydev/fault-detector-proto.git", {branch, "master"}}},
4343
{limiter_proto, {git, "https://github.com/valitydev/limiter-proto.git", {branch, "master"}}},
4444
{herd, {git, "https://github.com/wgnet/herd.git", {tag, "1.3.4"}}},
45-
{progressor, {git, "https://github.com/valitydev/progressor.git", {tag, "v0.0.1"}}},
45+
{progressor, {git, "https://github.com/valitydev/progressor.git", {tag, "v0.0.4"}}},
4646
{prometheus, "4.8.1"},
4747
{prometheus_cowboy, "0.1.8"},
4848

rebar.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
0},
103103
{<<"progressor">>,
104104
{git,"https://github.com/valitydev/progressor.git",
105-
{ref,"d261aaba4a5ea34b0074d7d21de6da1da3eee690"}},
105+
{ref,"cb87a174f80fb5ad68a87d91f0ba2291d1759f6a"}},
106106
0},
107107
{<<"prometheus">>,{pkg,<<"prometheus">>,<<"4.8.1">>},0},
108108
{<<"prometheus_cowboy">>,{pkg,<<"prometheus_cowboy">>,<<"0.1.8">>},0},

0 commit comments

Comments
 (0)