From 0696c757fa68f0426fcfec9b285adc5066672dbe Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Sat, 18 Jan 2014 21:06:10 -0600 Subject: [PATCH] Update ldb/dbtest to latest goleveldb API. --- ldb/dbtest/dbtst.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ldb/dbtest/dbtst.go b/ldb/dbtest/dbtst.go index 7fccb0cd..11a34c0b 100644 --- a/ldb/dbtest/dbtst.go +++ b/ldb/dbtest/dbtst.go @@ -25,8 +25,9 @@ func main() { ro := &opt.ReadOptions{} wo := &opt.WriteOptions{} + opts := &opt.Options{} - ldb, err := leveldb.OpenFile("dbfile", &opt.Options{Flag: opt.OFCreateIfMissing}) + ldb, err := leveldb.OpenFile("dbfile", opts) if err != nil { fmt.Printf("db open failed %v\n", err) return