Skip to content

Commit

Permalink
chore: use the erlfmt to reformat all erl codes
Browse files Browse the repository at this point in the history
  • Loading branch information
lafirest committed Nov 21, 2023
1 parent 545a645 commit 183ea7a
Show file tree
Hide file tree
Showing 3 changed files with 248 additions and 284 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ check: build
clean:
@rebar3 clean
@rm -rf _build

fmt:
@erlfmt -w '{src,include,priv,test}/**/*.{erl,hrl,app.src,es}'
6 changes: 4 additions & 2 deletions src/erlfdb_nif.erl
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,9 @@ transaction_get({erlfdb_transaction, Tx}, Key, Snapshot) ->
transaction_get_estimated_range_size({erlfdb_transaction, Tx}, StartKey, EndKey) ->
erlfdb_transaction_get_estimated_range_size(Tx, StartKey, EndKey).

-spec transaction_get_range_split_points(transaction(), BeginKey :: binary(), EndKey :: binary(), ChunkSize :: non_neg_integer()) ->
-spec transaction_get_range_split_points(
transaction(), BeginKey :: binary(), EndKey :: binary(), ChunkSize :: non_neg_integer()
) ->
future().
transaction_get_range_split_points({erlfdb_transaction, Tx}, BeginKey, EndKey, ChunkSize) ->
erlfdb_transaction_get_range_split_points(Tx, BeginKey, EndKey, ChunkSize).
Expand Down Expand Up @@ -538,7 +540,7 @@ erlfdb_transaction_get_read_version(_Transaction) -> ?NOT_LOADED.
erlfdb_transaction_get(_Transaction, _Key, _Snapshot) -> ?NOT_LOADED.
erlfdb_transaction_get_estimated_range_size(_Transaction, _SKey, _EKey) -> ?NOT_LOADED.
erlfdb_transaction_get_range_split_points(_Transaction, _BeginKey, _EndKey, _ChunkSize) ->
?NOT_LOADED.
?NOT_LOADED.
erlfdb_transaction_get_key(_Transaction, _KeySelector, _Snapshot) -> ?NOT_LOADED.
erlfdb_transaction_get_addresses_for_key(_Transaction, _Key) -> ?NOT_LOADED.
erlfdb_transaction_get_range(
Expand Down
Loading

0 comments on commit 183ea7a

Please sign in to comment.