diff options
| -rw-r--r-- | src/delegate.erl | 2 | ||||
| -rw-r--r-- | src/rabbit_amqqueue_process.erl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/delegate.erl b/src/delegate.erl index e50b99f141..11abe73b0d 100644 --- a/src/delegate.erl +++ b/src/delegate.erl @@ -206,7 +206,7 @@ handle_cast({thunk, Thunk}, State) -> {noreply, State, hibernate}. handle_info(_Info, State) -> - {noreply, State}. + {noreply, State, hibernate}. terminate(_Reason, _State) -> ok. diff --git a/src/rabbit_amqqueue_process.erl b/src/rabbit_amqqueue_process.erl index 6048920e2b..fe2c975b4e 100644 --- a/src/rabbit_amqqueue_process.erl +++ b/src/rabbit_amqqueue_process.erl @@ -994,7 +994,7 @@ handle_cast(emit_stats, State = #q{stats_timer = StatsTimer}) -> emit_stats(State), State1 = State#q{stats_timer = rabbit_event:reset_stats_timer(StatsTimer)}, assert_invariant(State1), - {noreply, State1}. + {noreply, State1, hibernate}. handle_info({'DOWN', _MonitorRef, process, DownPid, _Reason}, State = #q{q = #amqqueue{exclusive_owner = DownPid}}) -> |
