perf(router): add route runs in async dirty context
This commit is contained in:
parent
cee378c345
commit
ebc1b8521b
|
@ -259,7 +259,7 @@ delete_trie_route(Route = #route{topic = Topic}) ->
|
|||
%% @private
|
||||
-spec(trans(function(), list(any())) -> ok | {error, term()}).
|
||||
trans(Fun, Args) ->
|
||||
mnesia:sync_dirty(Fun, Args).
|
||||
mnesia:async_dirty(Fun, Args).
|
||||
|
||||
lock_router() ->
|
||||
%% if Retry is not 0, global:set_lock could sleep a random time up to 8s.
|
||||
|
|
Loading…
Reference in New Issue