mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-12 03:05:14 +00:00
User service: move to db (#146)
This commit is contained in:
@@ -3,6 +3,7 @@ package main
|
||||
import (
|
||||
"github.com/micro/micro/v3/service"
|
||||
"github.com/micro/micro/v3/service/logger"
|
||||
db "github.com/micro/services/db/proto"
|
||||
"github.com/micro/services/pkg/tracing"
|
||||
"github.com/micro/services/user/handler"
|
||||
proto "github.com/micro/services/user/proto"
|
||||
@@ -15,7 +16,7 @@ func main() {
|
||||
|
||||
service.Init()
|
||||
|
||||
proto.RegisterUserHandler(service.Server(), handler.NewUser())
|
||||
proto.RegisterUserHandler(service.Server(), handler.NewUser(db.NewDbService("db1", service.Client())))
|
||||
traceCloser := tracing.SetupOpentracing("user")
|
||||
defer traceCloser.Close()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user