feat(route-sync): do not run empty batches
This commit is contained in:
parent
2dffd44985
commit
a28fc7bfa8
|
@ -221,8 +221,10 @@ replyctx_send(Result, {MRef, Pid}) ->
|
|||
|
||||
%%
|
||||
|
||||
run_batch(Batch) ->
|
||||
emqx_router:do_batch(Batch).
|
||||
run_batch(Batch) when map_size(Batch) > 0 ->
|
||||
emqx_router:do_batch(Batch);
|
||||
run_batch(_Empty) ->
|
||||
#{}.
|
||||
|
||||
%%
|
||||
|
||||
|
|
Loading…
Reference in New Issue