Skip to content

Commit

Permalink
[BTFS-1156-Enhanced] - fmt, tidy, prep'd for master
Browse files Browse the repository at this point in the history
  • Loading branch information
uchetron committed Dec 20, 2019
1 parent ef3227b commit eacd9f6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions utils/grpc/setup_server.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package grpc

import (
"github.com/tron-us/go-common/v2/middleware"
"fmt"
"log"
"net"

Expand All @@ -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"
Expand Down Expand Up @@ -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)

Expand Down

0 comments on commit eacd9f6

Please sign in to comment.