Using more golang standard constant naming.
This commit is contained in:
parent
fdd94e9bea
commit
8f9a678b7d
1 changed files with 2 additions and 2 deletions
|
@ -30,7 +30,7 @@ var cmd, executor, url, clustersConfig, clusterName, updateId, username, passwor
|
||||||
var caCertsPath string
|
var caCertsPath string
|
||||||
var clientKey, clientCert string
|
var clientKey, clientCert string
|
||||||
|
|
||||||
var CONNECTION_TIMEOUT = 20 * time.Second
|
var ConnectionTimeout = 20 * time.Second
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
flag.StringVar(&cmd, "cmd", "", "Aurora Job request type to send to Aurora Scheduler")
|
flag.StringVar(&cmd, "cmd", "", "Aurora Job request type to send to Aurora Scheduler")
|
||||||
|
@ -80,7 +80,7 @@ func main() {
|
||||||
clientOptions := []realis.ClientOption{
|
clientOptions := []realis.ClientOption{
|
||||||
realis.BasicAuth(username, password),
|
realis.BasicAuth(username, password),
|
||||||
realis.ThriftJSON(),
|
realis.ThriftJSON(),
|
||||||
realis.Timeout(CONNECTION_TIMEOUT),
|
realis.Timeout(ConnectionTimeout),
|
||||||
realis.BackOff(realis.Backoff{
|
realis.BackOff(realis.Backoff{
|
||||||
Steps: 2,
|
Steps: 2,
|
||||||
Duration: 10 * time.Second,
|
Duration: 10 * time.Second,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue