diff options
author | Nick Vatamaniuc <vatamane@gmail.com> | 2022-06-17 18:13:24 -0400 |
---|---|---|
committer | Nick Vatamaniuc <nickva@users.noreply.github.com> | 2022-06-17 18:59:17 -0400 |
commit | 1d2ba3e5eefb1ab46146cf6506b1feeb2aa1eeb5 (patch) | |
tree | bb0bc50f09095054c36dd649dd8b7ef60b790b54 | |
parent | 0a229d8fbbecc378cc6b91c2d6704a2a33d95f0d (diff) | |
download | couchdb-1d2ba3e5eefb1ab46146cf6506b1feeb2aa1eeb5.tar.gz |
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.
-rw-r--r-- | src/smoosh/src/smoosh_server.erl | 21 |
1 files 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}) -> |