forked from mirror/ledisdb
use import `_` to load backend storage
This commit is contained in:
parent
d075418456
commit
ed982db4cc
|
@ -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
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue