mirror of
https://github.com/valitydev/machinery-erlang.git
synced 2024-11-06 00:35:19 +00:00
Fix machinegun timer marshaling (#14)
The timeout can be not only pos integer in machiengun protocol.
This commit is contained in:
parent
b54b396f63
commit
ec7968f1f4
@ -325,7 +325,7 @@ marshal(action, V) when is_list(V) ->
|
||||
marshal(action, V) ->
|
||||
marshal(action, [V]);
|
||||
|
||||
marshal(timer, {timeout, V}) when V > 0 ->
|
||||
marshal(timer, {timeout, V}) ->
|
||||
{timeout, marshal(integer, V)};
|
||||
|
||||
marshal(timer, {deadline, V}) ->
|
||||
|
Loading…
Reference in New Issue
Block a user