forked from p93542168/wheat-cache
fix(middle-driver): edit middledriver var
This commit is contained in:
parent
6a1d8a3621
commit
a606fbb08a
|
@ -3,11 +3,12 @@ package middle
|
|||
import (
|
||||
"sync"
|
||||
|
||||
"gitee.com/timedb/wheatCache/plugins"
|
||||
getMiddlewareMap "gitee.com/timedb/wheatCache/plugins/config"
|
||||
)
|
||||
|
||||
func Init() {
|
||||
getMiddlewareMap.GetMiddlewareMap()
|
||||
func Init() map[string]plugins.MiddleToolsInterface {
|
||||
return getMiddlewareMap.GetMiddlewareMap()
|
||||
}
|
||||
|
||||
var (
|
||||
|
|
|
@ -2,6 +2,7 @@ package middle
|
|||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"gitee.com/timedb/wheatCache/pkg/event"
|
||||
)
|
||||
|
@ -27,5 +28,7 @@ func (m *MiddleWare) GetEventDriver() event.DriverInterface {
|
|||
}
|
||||
|
||||
func (m *MiddleWare) work(ctx context.Context) {
|
||||
|
||||
getMiddlewareMap := Init()
|
||||
fmt.Println(getMiddlewareMap)
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue