Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
ban-nobuhiro committed Jun 6, 2023
1 parent 80ff271 commit bff52b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/limestone/leveldb_wrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class leveldb_wrapper {
return status.ok();
}

void each(std::function<void(std::string_view, std::string_view)>& fun) {
void each(const std::function<void(std::string_view, std::string_view)>& fun) {
leveldb::Iterator* it = lvldb_->NewIterator(leveldb::ReadOptions()); // NOLINT (typical usage of leveldb)
for (it->SeekToFirst(); it->Valid(); it->Next()) {
leveldb::Slice key = it->key();
Expand Down

0 comments on commit bff52b0

Please sign in to comment.