update graph to use go-micro v3

This commit is contained in:
A.Unger
2021-02-17 11:50:40 +01:00
committed by Jörn Friedrich Dreyer
parent af33d62a9a
commit 9b9f4703af
3 changed files with 107 additions and 4 deletions
+2 -4
View File
@@ -1,6 +1,7 @@
package http
import (
"github.com/asim/go-micro/v3"
svc "github.com/owncloud/ocis/graph/pkg/service/v0"
"github.com/owncloud/ocis/graph/pkg/version"
"github.com/owncloud/ocis/ocis-pkg/middleware"
@@ -53,10 +54,7 @@ func Server(opts ...Option) (http.Service, error) {
handle = svc.NewTracing(handle)
}
service.Handle(
"/",
handle,
)
micro.RegisterHandler(service.Server(), handle)
service.Init()
return service, nil