From afbf3c31f4d1a605c264f719531f4183ee5a3022 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Fri, 13 Oct 2023 15:05:49 +1100 Subject: Use libcppbor for much much nicer db encoding --- src/database/index.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/database/index.cpp') diff --git a/src/database/index.cpp b/src/database/index.cpp index 79939aaa..c7fd753a 100644 --- a/src/database/index.cpp +++ b/src/database/index.cpp @@ -94,7 +94,7 @@ auto Index(const IndexInfo& info, const Track& t, leveldb::WriteBatch* batch) } auto encoded = EncodeIndexKey(key); - batch->Put(encoded.slice, {value.data(), value.size()}); + batch->Put(encoded, {value.data(), value.size()}); // If there are more components after this, then we need to finish by // narrowing the header with the current title. -- cgit v1.2.3