Skip to content

Commit

Permalink
Fix shadowed variable NodeBin
Browse files Browse the repository at this point in the history
  • Loading branch information
arcusfelis committed Jun 29, 2023
1 parent 80077e2 commit b83dc98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mongoose_cets_discovery_rdbms.erl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ try_register(ClusterName, NodeBin) when is_binary(NodeBin), is_binary(ClusterNam
Node = binary_to_atom(NodeBin),
prepare(),
{selected, Rows} = select(ClusterName),
Pairs = [{binary_to_atom(NodeBin), Num} || {NodeBin, Num} <- Rows],
Pairs = [{binary_to_atom(DbNodeBin), Num} || {DbNodeBin, Num} <- Rows],
{Nodes, Nums} = lists:unzip(Pairs),
AlreadyRegistered = lists:member(Node, Nodes),
Timestamp = timestamp(),
Expand Down

0 comments on commit b83dc98

Please sign in to comment.