From 767e78b4169da1e27e6c0ae948ca9af9cc4d7acc Mon Sep 17 00:00:00 2001 From: NikVolf Date: Sat, 15 Oct 2016 18:37:42 +0300 Subject: [PATCH] version ocnst --- db/src/storage.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/src/storage.rs b/db/src/storage.rs index 24d3538b..ff2eeb51 100644 --- a/db/src/storage.rs +++ b/db/src/storage.rs @@ -98,7 +98,7 @@ impl Storage { let cfg = DatabaseConfig::with_columns(Some(COL_COUNT)); let db = try!(Database::open(&cfg, &*path.as_ref().to_string_lossy())); - match try!(db.get(Some(COL_META), b"version")) { + match try!(db.get(Some(COL_META), KEY_VERSION)) { Some(val) => { let ver = LittleEndian::read_u32(&val); if ver == DB_VERSION {