Skip to content

Commit

Permalink
Make "tchannel" constant
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav committed Apr 26, 2017
1 parent 085a033 commit a7b8bd5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion transport/tchannel/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ import (
"go.uber.org/yarpc/x/config"
)

const transportName = "tchannel"

// TransportConfig configures a shared TChannel transport. This is shared
// between all TChannel outbounds and inbounds of a Dispatcher.
//
Expand Down Expand Up @@ -61,7 +63,7 @@ type OutboundConfig struct {
// various supported configuration parameters.
func TransportSpec() config.TransportSpec {
return config.TransportSpec{
Name: "tchannel",
Name: transportName,
BuildTransport: buildTransport,
BuildInbound: buildInbound,
BuildUnaryOutbound: buildUnaryOutbound,
Expand Down

0 comments on commit a7b8bd5

Please sign in to comment.