hibernate
This commit is contained in:
parent
4cee1ad07e
commit
fffbd3dd1e
|
@ -139,7 +139,7 @@ handle_cast(Msg, State) ->
|
|||
handle_info(heartbeat, State) ->
|
||||
publish(uptime, list_to_binary(uptime(State))),
|
||||
publish(datetime, list_to_binary(datetime())),
|
||||
{noreply, State};
|
||||
{noreply, State, hibernate};
|
||||
|
||||
handle_info(tick, State) ->
|
||||
retain(brokers),
|
||||
|
|
|
@ -127,7 +127,7 @@ handle_info({monitor, SusPid, busy_dist_port, Port}, State) ->
|
|||
end, State);
|
||||
|
||||
handle_info(reset, State) ->
|
||||
{noreply, State#state{events = []}};
|
||||
{noreply, State#state{events = []}, hibernate};
|
||||
|
||||
handle_info(Info, State) ->
|
||||
?UNEXPECTED_INFO(Info, State).
|
||||
|
|
Loading…
Reference in New Issue