Skip to content

Commit

Permalink
Rename khepri_tree.hrl to khepri_node.hrl
Browse files Browse the repository at this point in the history
[Why]
It no longer defines `#tree{}` and is now dedicated to the definition of
`#node{}`.
  • Loading branch information
dumbbell committed Oct 1, 2024
1 parent 2c2b36c commit e4b9f4a
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/khepri_machine.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
%% refers to Broadcom Inc. and/or its subsidiaries.
%%

-include("src/khepri_tree.hrl").
-include("src/khepri_node.hrl").

%% TODO: Query this value from Ra itself.
-define(SNAPSHOT_INTERVAL, 4096).
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/khepri_pattern_tree.erl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

-module(khepri_pattern_tree).

-include("src/khepri_tree.hrl").
-include("src/khepri_node.hrl").

-record(pattern_node, {child_nodes = #{},
payload = ?NO_PAYLOAD}).
Expand Down
2 changes: 1 addition & 1 deletion src/khepri_tree.erl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

-include("include/khepri.hrl").
-include("src/khepri_error.hrl").
-include("src/khepri_tree.hrl").
-include("src/khepri_node.hrl").

-export([new/0,
get_root/1,
Expand Down
2 changes: 1 addition & 1 deletion test/pattern_tree.erl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
-include_lib("eunit/include/eunit.hrl").

-include("include/khepri.hrl").
-include("src/khepri_tree.hrl").
-include("src/khepri_node.hrl").
-include("test/helpers.hrl").

is_empty_test() ->
Expand Down

0 comments on commit e4b9f4a

Please sign in to comment.