Skip to content

Commit

Permalink
khepri_tx_adv: Allow calls to khepri_path in transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mikedavis committed Dec 3, 2024
1 parent ba1bf14 commit fde1113
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/khepri_tx_adv.erl
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,9 @@ ensure_bif_is_valid(Bif, Arity) ->
is_remote_call_valid(khepri_payload, no_payload, 0) -> true;
is_remote_call_valid(khepri_payload, data, 1) -> true;

%% TODO: list functions which are allowed.
is_remote_call_valid(khepri_path, _, _) -> true;

is_remote_call_valid(khepri_tx, is_empty, _) -> true;
is_remote_call_valid(khepri_tx, get, _) -> true;
is_remote_call_valid(khepri_tx, get_or, _) -> true;
Expand Down

0 comments on commit fde1113

Please sign in to comment.