use import `_` to load backend storage

This commit is contained in:
siddontang 2014-08-30 10:17:04 +08:00
parent d075418456
commit ed982db4cc
1 changed files with 6 additions and 12 deletions

View File

@ -7,12 +7,12 @@ import (
"os" "os"
"path" "path"
"github.com/siddontang/ledisdb/store/boltdb" _ "github.com/siddontang/ledisdb/store/boltdb"
"github.com/siddontang/ledisdb/store/goleveldb" _ "github.com/siddontang/ledisdb/store/goleveldb"
"github.com/siddontang/ledisdb/store/hyperleveldb" _ "github.com/siddontang/ledisdb/store/hyperleveldb"
"github.com/siddontang/ledisdb/store/leveldb" _ "github.com/siddontang/ledisdb/store/leveldb"
"github.com/siddontang/ledisdb/store/mdb" _ "github.com/siddontang/ledisdb/store/mdb"
"github.com/siddontang/ledisdb/store/rocksdb" _ "github.com/siddontang/ledisdb/store/rocksdb"
) )
func getStorePath(cfg *config.Config) string { func getStorePath(cfg *config.Config) string {
@ -53,10 +53,4 @@ func Repair(cfg *config.Config) error {
} }
func init() { func init() {
_ = boltdb.DBName
_ = goleveldb.DBName
_ = hyperleveldb.DBName
_ = leveldb.DBName
_ = mdb.DBName
_ = rocksdb.DBName
} }