Skip to content

Commit 35743f9

Browse files
committed
chore: update interceptor method name
1 parent c64c40f commit 35743f9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

common/interfaces.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
)
1313

1414
type Interceptor interface {
15-
UnaryInterceptor() grpc.UnaryServerInterceptor
15+
UnaryServerInterceptor() grpc.UnaryServerInterceptor
1616
Name() string
1717
}
1818

server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func (p *Plugin) createGRPCserver(interceptors map[string]common.Interceptor) (*
3333
for _, interceptor := range interceptors {
3434
unaryInterceptors = append(
3535
unaryInterceptors,
36-
interceptor.UnaryInterceptor(),
36+
interceptor.UnaryServerInterceptor(),
3737
)
3838
}
3939

0 commit comments

Comments
 (0)