Fix function clause error in nonces_result
This commit is contained in:
parent
0dca4bfaf8
commit
f7831eef97
@ -1,6 +1,6 @@
|
|||||||
{application,gmhive_client,
|
{application,gmhive_client,
|
||||||
[{description,"Gajumaru Hive client"},
|
[{description,"Gajumaru Hive client"},
|
||||||
{vsn,"0.2.0"},
|
{vsn,"0.2.1"},
|
||||||
{registered,[]},
|
{registered,[]},
|
||||||
{applications,[kernel,stdlib,sasl,gproc,enoise,gmconfig,
|
{applications,[kernel,stdlib,sasl,gproc,enoise,gmconfig,
|
||||||
gmhive_protocol,gmhive_worker]},
|
gmhive_protocol,gmhive_worker]},
|
||||||
|
@ -205,7 +205,8 @@ nonces_result(#{nonces := #{seq := Seq, nonces := Nonces}}, Seq0, S) ->
|
|||||||
?LOG_DEBUG("Seq mismatch - wtf?? ~p - ~p", [Seq, Seq0]),
|
?LOG_DEBUG("Seq mismatch - wtf?? ~p - ~p", [Seq, Seq0]),
|
||||||
S
|
S
|
||||||
end;
|
end;
|
||||||
nonces_result({error, #{message := <<"outdated">>}}, Seq0, S) ->
|
nonces_result({error, Reason}, Seq0, S) ->
|
||||||
|
?LOG_DEBUG("Got error on nonce request: ~p", [Reason]),
|
||||||
Workers = stop_workers_for_seq(Seq0, S#st.workers),
|
Workers = stop_workers_for_seq(Seq0, S#st.workers),
|
||||||
S#st{workers = Workers}.
|
S#st{workers = Workers}.
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
{prefix,"gmhc"}.
|
{prefix,"gmhc"}.
|
||||||
{desc,"Gajumaru Hive Client"}.
|
{desc,"Gajumaru Hive Client"}.
|
||||||
{author,"Ulf Wiger, QPQ AG"}.
|
{author,"Ulf Wiger, QPQ AG"}.
|
||||||
{package_id,{"uwiger","gmhive_client",{0,2,0}}}.
|
{package_id,{"uwiger","gmhive_client",{0,2,1}}}.
|
||||||
{deps,[{"uwiger","gmhive_worker",{0,1,1}},
|
{deps,[{"uwiger","gmhive_worker",{0,1,1}},
|
||||||
{"uwiger","gmhive_protocol",{0,1,1}},
|
{"uwiger","gmhive_protocol",{0,1,1}},
|
||||||
{"uwiger","setup",{2,2,4}},
|
{"uwiger","setup",{2,2,4}},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user