Skip to content

Commit 3c813e2

Browse files
committed
fix: git merge
1 parent 0af20f2 commit 3c813e2

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

pkg/grpc/default_api/api.go

+7-9
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,16 @@ import (
2323
"sync"
2424

2525
"github.com/dapr/components-contrib/bindings"
26-
grpc_api "mosn.io/layotto/pkg/grpc"
27-
"mosn.io/layotto/pkg/grpc/dapr"
28-
dapr_common_v1pb "mosn.io/layotto/pkg/grpc/dapr/proto/common/v1"
29-
dapr_v1pb "mosn.io/layotto/pkg/grpc/dapr/proto/runtime/v1"
30-
mgrpc "mosn.io/mosn/pkg/filter/network/grpc"
31-
3226
"github.com/dapr/components-contrib/pubsub"
3327
"github.com/dapr/components-contrib/state"
3428
jsoniter "github.com/json-iterator/go"
3529
"google.golang.org/grpc"
3630
"google.golang.org/protobuf/types/known/emptypb"
3731
"mosn.io/layotto/components/file"
32+
grpc_api "mosn.io/layotto/pkg/grpc"
33+
"mosn.io/layotto/pkg/grpc/dapr"
34+
dapr_common_v1pb "mosn.io/layotto/pkg/grpc/dapr/proto/common/v1"
35+
dapr_v1pb "mosn.io/layotto/pkg/grpc/dapr/proto/runtime/v1"
3836

3937
"mosn.io/layotto/components/configstores"
4038
"mosn.io/layotto/components/hello"
@@ -136,10 +134,10 @@ func (a *api) Init(conn *grpc.ClientConn) error {
136134
return a.startSubscribing()
137135
}
138136

139-
func (a *api) Register(s *grpc.Server, registeredServer mgrpc.RegisteredServer) (mgrpc.RegisteredServer, error) {
137+
func (a *api) Register(rawGrpServer *grpc.Server) error {
140138
LayottoAPISingleton = a
141-
runtimev1pb.RegisterRuntimeServer(s, a)
142-
return registeredServer, nil
139+
runtimev1pb.RegisterRuntimeServer(rawGrpServer, a)
140+
return nil
143141
}
144142

145143
func NewGrpcAPI(ac *grpc_api.ApplicationContext) grpc_api.GrpcAPI {

0 commit comments

Comments
 (0)