Skip to content

Commit

Permalink
change grpc host and port keys
Browse files Browse the repository at this point in the history
  • Loading branch information
felipejfc committed Mar 26, 2019
1 parent 76aee35 commit 1f00b64
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cluster/grpc_rpc_client.go
Expand Up @@ -219,7 +219,7 @@ func (gs *GRPCClient) AddServer(sv *Server) {

host, portKey = gs.getServerHost(sv)
if host == "" {
logger.Log.Errorf("server %s has no grpc-host specified in metadata", sv.ID)
logger.Log.Errorf("server %s has no grpcHost specified in metadata", sv.ID)
return
}

Expand Down
4 changes: 2 additions & 2 deletions constants/const.go
Expand Up @@ -79,13 +79,13 @@ var RouteKey = "req-route"
var MetricTagsKey = "metric-tags"

// GRPCHostKey is the key for grpc host on server metadata
var GRPCHostKey = "grpc-host"
var GRPCHostKey = "grpcHost"

// GRPCExternalHostKey is the key for grpc external host on server metadata
var GRPCExternalHostKey = "grpc-external-host"

// GRPCPortKey is the key for grpc port on server metadata
var GRPCPortKey = "grpc-port"
var GRPCPortKey = "grpcPort"

// GRPCExternalPortKey is the key for grpc external port on server metadata
var GRPCExternalPortKey = "grpc-external-port"
Expand Down

0 comments on commit 1f00b64

Please sign in to comment.