format code
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
package internal
|
package internal
|
||||||
|
|
||||||
import (
|
import "google.golang.org/grpc"
|
||||||
"google.golang.org/grpc"
|
|
||||||
)
|
|
||||||
|
|
||||||
func WithStreamClientInterceptors(interceptors ...grpc.StreamClientInterceptor) grpc.DialOption {
|
func WithStreamClientInterceptors(interceptors ...grpc.StreamClientInterceptor) grpc.DialOption {
|
||||||
return grpc.WithChainStreamInterceptor(interceptors...)
|
return grpc.WithChainStreamInterceptor(interceptors...)
|
||||||
@@ -10,4 +8,4 @@ func WithStreamClientInterceptors(interceptors ...grpc.StreamClientInterceptor)
|
|||||||
|
|
||||||
func WithUnaryClientInterceptors(interceptors ...grpc.UnaryClientInterceptor) grpc.DialOption {
|
func WithUnaryClientInterceptors(interceptors ...grpc.UnaryClientInterceptor) grpc.DialOption {
|
||||||
return grpc.WithChainUnaryInterceptor(interceptors...)
|
return grpc.WithChainUnaryInterceptor(interceptors...)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
package internal
|
package internal
|
||||||
|
|
||||||
import (
|
import "google.golang.org/grpc"
|
||||||
"google.golang.org/grpc"
|
|
||||||
)
|
|
||||||
|
|
||||||
func WithStreamServerInterceptors(interceptors ...grpc.StreamServerInterceptor) grpc.ServerOption {
|
func WithStreamServerInterceptors(interceptors ...grpc.StreamServerInterceptor) grpc.ServerOption {
|
||||||
return grpc.ChainStreamInterceptor(interceptors...)
|
return grpc.ChainStreamInterceptor(interceptors...)
|
||||||
@@ -10,4 +8,4 @@ func WithStreamServerInterceptors(interceptors ...grpc.StreamServerInterceptor)
|
|||||||
|
|
||||||
func WithUnaryServerInterceptors(interceptors ...grpc.UnaryServerInterceptor) grpc.ServerOption {
|
func WithUnaryServerInterceptors(interceptors ...grpc.UnaryServerInterceptor) grpc.ServerOption {
|
||||||
return grpc.ChainUnaryInterceptor(interceptors...)
|
return grpc.ChainUnaryInterceptor(interceptors...)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user