Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Commit

Permalink
Fix extra Opts param in CF version and note to test it
Browse files Browse the repository at this point in the history
  • Loading branch information
xandkar committed Jun 21, 2022
1 parent 6a2579e commit 92ebb1d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/blockchain_rocks.erl
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ stream(DB, Opts) ->
) ->
data_stream:t({K :: binary(), V :: binary()}).
stream(DB, CF, Opts) ->
stream_(fun () -> rocksdb:iterator(DB, CF, Opts, Opts) end).
stream_(fun () -> rocksdb:iterator(DB, CF, Opts) end).

%% @doc Select K random records from database.
-spec sample(rocksdb:db_handle(), rocksdb:read_options(), pos_integer()) ->
Expand Down
2 changes: 2 additions & 0 deletions test/blockchain_rocks_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ all() ->
t_stream_mapped_and_filtered
].

%%% TODO CF and non-CF groups

init_per_suite(Cfg) ->
NumRecords = 10_000,
DB = db_init(?MODULE, Cfg, NumRecords),
Expand Down

0 comments on commit 92ebb1d

Please sign in to comment.