Skip to content

Commit 632d080

Browse files
committed
fix
1 parent 2353205 commit 632d080

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

pkg/gofr/grpc.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,3 +268,11 @@ func injectContainer(impl any, c *container.Container) error {
268268

269269
return nil
270270
}
271+
272+
func (g *grpcServer) addServerOptions(opts ...grpc.ServerOption) {
273+
g.options = append(g.options, opts...)
274+
}
275+
276+
func (g *grpcServer) addUnaryInterceptors(interceptors ...grpc.UnaryServerInterceptor) {
277+
g.interceptors = append(g.interceptors, interceptors...)
278+
}

pkg/gofr/grpc_test.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,6 @@ import (
1919
"gofr.dev/pkg/gofr/testutil"
2020
)
2121

22-
func (g *grpcServer) addServerOptions(opts ...grpc.ServerOption) {
23-
g.options = append(g.options, opts...)
24-
}
25-
26-
func (g *grpcServer) addUnaryInterceptors(interceptors ...grpc.UnaryServerInterceptor) {
27-
g.interceptors = append(g.interceptors, interceptors...)
28-
}
29-
3022
func (g *grpcServer) registerService(t *testing.T, desc *grpc.ServiceDesc, impl any) {
3123
t.Helper()
3224

0 commit comments

Comments
 (0)