From bff52b099317455db3f41a0f2d0c7ec963ac9373 Mon Sep 17 00:00:00 2001 From: Nobuhiro Ban Date: Tue, 6 Jun 2023 17:58:18 +0900 Subject: [PATCH] fixup --- src/limestone/leveldb_wrapper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/limestone/leveldb_wrapper.h b/src/limestone/leveldb_wrapper.h index 4765d27..bccff48 100644 --- a/src/limestone/leveldb_wrapper.h +++ b/src/limestone/leveldb_wrapper.h @@ -70,7 +70,7 @@ class leveldb_wrapper { return status.ok(); } - void each(std::function& fun) { + void each(const std::function& 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();