Skip to content

Commit

Permalink
Add routing key field
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexhauser23 committed Nov 29, 2017
1 parent a2efad3 commit 819b2a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion backend/repository/client_update.go
Expand Up @@ -173,7 +173,8 @@ func UpdateProductionConfigJSON(req *ClientConfig, productionCfgJSONPath string)
if req.Type == "tchannel" {
content[prefix+"serviceName"] = req.ServiceName
content[prefix+"timeout"] = req.Timeout
content[prefix+"timeoutPerAttempt"] = req.TimeoutPerAttempt
content[prefix+"timeoutPerAttempt"] = req.TimeoutPerAttempt,
content[prefix+"routingKey"] = req.routingKey
}
content[prefix+"port"] = req.Port
content[prefix+"ip"] = req.IP
Expand Down
3 changes: 2 additions & 1 deletion backend/repository/config.go
Expand Up @@ -85,7 +85,8 @@ type ClientConfig struct {
IP string `json:"ip,omitempty"`
Port int64 `json:"port,omitempty"`
Timeout int64 `json:"clientTimeout,omitempty"`
TimeoutPerAttempt int64 `json:"clientTimeoutPerAttempt,omitempty"`
TimeoutPerAttempt int64 `json:"clientTimeoutPerAttempt,omitempty"`,
RoutingKey string `json:"routingKey"`
}

// ThriftService is a service defined in Thrift file.
Expand Down

0 comments on commit 819b2a0

Please sign in to comment.