Skip to content

Commit fe28028

Browse files
committed
rabbit_db_bindings: Explicitly mark exists_in_khepri tx as read-only
This is essentially a cosmetic change. Read-only transactions are done with queries in Khepri rather than commands, like read-write transactions. Local queries cannot timeout like commands so marking the transaction as 'ro' means that we don't need to handle a potential '{error, timeout}' return.
1 parent aace1b5 commit fe28028

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deps/rabbit/src/rabbit_db_binding.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ exists_in_khepri(#binding{source = SrcName,
120120
Errs ->
121121
Errs
122122
end
123-
end) of
123+
end, ro) of
124124
{ok, not_found} -> false;
125125
{ok, Set} -> sets:is_element(Binding, Set);
126126
Errs -> not_found_errs_in_khepri(not_found(Errs, SrcName, DstName))

0 commit comments

Comments
 (0)