瀏覽代碼

format code

kevin 4 年之前
父節點
當前提交
e6df21e0d2
共有 2 個文件被更改,包括 4 次插入8 次删除
  1. 2 4
      zrpc/internal/chainclientinterceptors.go
  2. 2 4
      zrpc/internal/chainserverinterceptors.go

+ 2 - 4
zrpc/internal/chainclientinterceptors.go

@@ -1,8 +1,6 @@
 package internal
 
-import (
-	"google.golang.org/grpc"
-)
+import "google.golang.org/grpc"
 
 func WithStreamClientInterceptors(interceptors ...grpc.StreamClientInterceptor) grpc.DialOption {
 	return grpc.WithChainStreamInterceptor(interceptors...)
@@ -10,4 +8,4 @@ func WithStreamClientInterceptors(interceptors ...grpc.StreamClientInterceptor)
 
 func WithUnaryClientInterceptors(interceptors ...grpc.UnaryClientInterceptor) grpc.DialOption {
 	return grpc.WithChainUnaryInterceptor(interceptors...)
-}
+}

+ 2 - 4
zrpc/internal/chainserverinterceptors.go

@@ -1,8 +1,6 @@
 package internal
 
-import (
-	"google.golang.org/grpc"
-)
+import "google.golang.org/grpc"
 
 func WithStreamServerInterceptors(interceptors ...grpc.StreamServerInterceptor) grpc.ServerOption {
 	return grpc.ChainStreamInterceptor(interceptors...)
@@ -10,4 +8,4 @@ func WithStreamServerInterceptors(interceptors ...grpc.StreamServerInterceptor)
 
 func WithUnaryServerInterceptors(interceptors ...grpc.UnaryServerInterceptor) grpc.ServerOption {
 	return grpc.ChainUnaryInterceptor(interceptors...)
-}
+}