Skip to content

Commit

Permalink
khepri_node: Remove delete_reason from DEFAULT_PROPS_TO_RETURN
Browse files Browse the repository at this point in the history
  • Loading branch information
the-mikedavis committed Dec 3, 2024
1 parent 6f88694 commit ba1bf14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
9 changes: 3 additions & 6 deletions src/khepri_adv.erl
Original file line number Diff line number Diff line change
Expand Up @@ -862,8 +862,7 @@ delete(PathPattern, Options) when is_map(Options) ->
%% ```
%% %% Delete the tree node at `/:foo/:bar'.
%% {ok, #{data := value,
%% payload_version := 1,
%% delete_reason := explicit}} = khepri_adv:delete(StoreId, [foo, bar]).
%% payload_version := 1}} = khepri_adv:delete(StoreId, [foo, bar]).
%% '''
%%
%% @param StoreId the name of the Khepri store.
Expand Down Expand Up @@ -960,10 +959,8 @@ delete_many(PathPattern, Options) when is_map(Options) ->
%% ```
%% %% Delete all tree nodes matching `/*/:bar'.
%% {ok, #{[foo, bar] := #{data := value,
%% payload_version := 1,
%% delete_reason := explicit},
%% [baz, bar] := #{payload_version := 1,
%% delete_reason := explicit}}} =
%% payload_version := 1},
%% [baz, bar] := #{payload_version := 1}}} =
%% khepri_adv:delete_many(StoreId, [?KHEPRI_WILDCARD_STAR, bar]).
%% '''
%%
Expand Down
3 changes: 1 addition & 2 deletions src/khepri_node.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
child_list_version => ?INIT_CHILD_LIST_VERSION}).

-define(DEFAULT_PROPS_TO_RETURN, [payload,
payload_version,
delete_reason]).
payload_version]).

-record(node, {props = ?INIT_NODE_PROPS :: khepri_machine:props(),
payload = ?NO_PAYLOAD :: khepri_payload:payload(),
Expand Down

0 comments on commit ba1bf14

Please sign in to comment.