This is an automated email from the ASF dual-hosted git repository.

chewbranca pushed a commit to branch couch-stats-resource-tracker-rebase
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to 
refs/heads/couch-stats-resource-tracker-rebase by this push:
     new d13843434 Use atom_to_binary on atoms
d13843434 is described below

commit d138434349667036e72b34cd72534c76cd8635f8
Author: Russell Branca <chewbra...@apache.org>
AuthorDate: Thu Feb 15 09:45:51 2024 -0800

    Use atom_to_binary on atoms
---
 src/couch_stats/src/couch_stats_resource_tracker.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/couch_stats/src/couch_stats_resource_tracker.erl 
b/src/couch_stats/src/couch_stats_resource_tracker.erl
index d44143340..102ca0a8c 100644
--- a/src/couch_stats/src/couch_stats_resource_tracker.erl
+++ b/src/couch_stats/src/couch_stats_resource_tracker.erl
@@ -596,7 +596,7 @@ convert_type(Atom) when is_atom(Atom) ->
     atom_to_binary(Atom);
 convert_type({coordinator, Verb0, Atom0}) when is_atom(Atom0) ->
     Verb = atom_to_binary(Verb0),
-    Atom = list_to_binary(Atom0),
+    Atom = atom_to_binary(Atom0),
     <<"coordinator:", Verb/binary, ":", Atom/binary>>;
 convert_type({coordinator, Verb0, Path0}) ->
     Verb = atom_to_binary(Verb0),

Reply via email to