From eacd9f6f6789bc6cb4496166b9c39c5b6565d242 Mon Sep 17 00:00:00 2001 From: uchenna Date: Fri, 20 Dec 2019 12:11:12 -0800 Subject: [PATCH] [BTFS-1156-Enhanced] - fmt, tidy, prep'd for master --- utils/grpc/setup_server.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/utils/grpc/setup_server.go b/utils/grpc/setup_server.go index 49dd4ca..4784785 100644 --- a/utils/grpc/setup_server.go +++ b/utils/grpc/setup_server.go @@ -1,7 +1,7 @@ package grpc import ( - "github.com/tron-us/go-common/v2/middleware" + "fmt" "log" "net" @@ -11,8 +11,9 @@ import ( "github.com/tron-us/go-btfs-common/protos/shared" "github.com/tron-us/go-btfs-common/protos/status" - "fmt" "github.com/tron-us/go-common/v2/constant" + "github.com/tron-us/go-common/v2/middleware" + "go.uber.org/zap" "google.golang.org/grpc" "google.golang.org/grpc/health" @@ -42,11 +43,11 @@ func (s *GrpcServer) serverTypeToServerName(server interface{}) { case string: s.serverName = fmt.Sprintf("%v", server) default: - s.serverName = "unknown" + s.serverName = "unknown" } } -func (s *GrpcServer) GrpcServer(port string, dbURL string, rdURL string, server interface{}, options ...grpc.ServerOption ) *GrpcServer { +func (s *GrpcServer) GrpcServer(port string, dbURL string, rdURL string, server interface{}, options ...grpc.ServerOption) *GrpcServer { s.serverTypeToServerName(server)