This is an automated email from the ASF dual-hosted git repository. vatamane pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 1d2ba3e5eefb1ab46146cf6506b1feeb2aa1eeb5 Author: Nick Vatamaniuc <[email protected]> AuthorDate: Fri Jun 17 18:13:24 2022 -0400 Update erlfmt formatting for smoosh_server Since the ?STACKTRACE macro is gone now we have actual Erlang syntax in there and erlfmt knows how to interpret it. --- src/smoosh/src/smoosh_server.erl | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/src/smoosh/src/smoosh_server.erl b/src/smoosh/src/smoosh_server.erl index 4ac7fd989..ffd7961b9 100644 --- a/src/smoosh/src/smoosh_server.erl +++ b/src/smoosh/src/smoosh_server.erl @@ -270,16 +270,23 @@ start_event_listener() -> enqueue_request(State, Object) -> try case find_channel(State, Object) of - false -> - ok; - {ok, Pid, Priority} -> - smoosh_channel:enqueue(Pid, Object, Priority) + false -> + ok; + {ok, Pid, Priority} -> + smoosh_channel:enqueue(Pid, Object, Priority) end catch Class:Exception:Stack -> - couch_log:warning("~s: ~p ~p for ~s : ~p", - [?MODULE, Class, Exception, - smoosh_utils:stringify(Object), Stack]) + couch_log:warning( + "~s: ~p ~p for ~s : ~p", + [ + ?MODULE, + Class, + Exception, + smoosh_utils:stringify(Object), + Stack + ] + ) end. find_channel(#state{} = State, {Shard, GroupId}) ->
