fix(plugin): gen_server call timeout infinity

This commit is contained in:
JimMoen 2024-04-24 17:45:36 +08:00
parent c0429ca333
commit 1f00ce789f
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ add_schema(Name, Avsc) ->
?SLOG(warning, #{msg => "plugin_schema_already_exists", plugin => Name}), ?SLOG(warning, #{msg => "plugin_schema_already_exists", plugin => Name}),
{error, already_exists}; {error, already_exists};
{error, not_found} -> {error, not_found} ->
case gen_server:call(?MODULE, {build_serdes, to_bin(Name), Avsc}) of case gen_server:call(?MODULE, {build_serdes, to_bin(Name), Avsc}, infinity) of
ok -> ok ->
?SLOG(debug, #{msg => "plugin_schema_added", plugin => Name}), ?SLOG(debug, #{msg => "plugin_schema_added", plugin => Name}),
ok; ok;