mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-14 20:14:47 +00:00
Delete data part 1 (#360)
This commit is contained in:
5
cache/main.go
vendored
5
cache/main.go
vendored
@@ -3,6 +3,7 @@ package main
|
||||
import (
|
||||
"github.com/micro/services/cache/handler"
|
||||
pb "github.com/micro/services/cache/proto"
|
||||
adminpb "github.com/micro/services/pkg/service/proto"
|
||||
"github.com/micro/services/pkg/tracing"
|
||||
|
||||
"github.com/micro/micro/v3/service"
|
||||
@@ -17,7 +18,9 @@ func main() {
|
||||
)
|
||||
|
||||
// Register handler
|
||||
pb.RegisterCacheHandler(srv.Server(), new(handler.Cache))
|
||||
c := new(handler.Cache)
|
||||
pb.RegisterCacheHandler(srv.Server(), c)
|
||||
adminpb.RegisterAdminHandler(srv.Server(), c)
|
||||
|
||||
traceCloser := tracing.SetupOpentracing("cache")
|
||||
defer traceCloser.Close()
|
||||
|
||||
Reference in New Issue
Block a user