feat(route-sync): do not run empty batches

This commit is contained in:
Andrew Mayorov 2024-01-10 20:10:34 +01:00
parent 2dffd44985
commit a28fc7bfa8
No known key found for this signature in database
GPG Key ID: 2837C62ACFBFED5D
1 changed files with 4 additions and 2 deletions

View File

@ -221,8 +221,10 @@ replyctx_send(Result, {MRef, Pid}) ->
%% %%
run_batch(Batch) -> run_batch(Batch) when map_size(Batch) > 0 ->
emqx_router:do_batch(Batch). emqx_router:do_batch(Batch);
run_batch(_Empty) ->
#{}.
%% %%