fix(storage): fix storage service
This commit is contained in:
parent
c67e0c863c
commit
54520cb033
|
@ -6,7 +6,7 @@ import (
|
||||||
"log"
|
"log"
|
||||||
"net"
|
"net"
|
||||||
|
|
||||||
"gitee.com/timedb/wheatCache/storage/server/single"
|
"gitee.com/timedb/wheatCache/storage/service"
|
||||||
|
|
||||||
_ "gitee.com/timedb/wheatCache/conf"
|
_ "gitee.com/timedb/wheatCache/conf"
|
||||||
"gitee.com/timedb/wheatCache/pkg/logx"
|
"gitee.com/timedb/wheatCache/pkg/logx"
|
||||||
|
@ -24,7 +24,7 @@ var rootCmd = &cobra.Command{
|
||||||
Short: "storage",
|
Short: "storage",
|
||||||
Long: `start storage server`,
|
Long: `start storage server`,
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
storageServer := single.NewServer()
|
storageServer := service.NewSingleServer()
|
||||||
conf := viper.GetStringMap("storage")
|
conf := viper.GetStringMap("storage")
|
||||||
host := conf["host"].(string)
|
host := conf["host"].(string)
|
||||||
port := conf["port"].(int)
|
port := conf["port"].(int)
|
||||||
|
|
Loading…
Reference in New Issue