Fixing issue where duration variable was accidentally multiplied by seconds again.

This commit is contained in:
Renan DelValle 2020-10-14 20:17:43 -07:00
parent bb370151e6
commit 7967188513
No known key found for this signature in database
GPG key ID: C240AD6D6F443EC9

View file

@ -69,7 +69,7 @@ func init() {
rootCmd.PersistentFlags().StringVar(&configFile, "config", "/etc/aurora/australis.yml", "Config file to use.")
rootCmd.PersistentFlags().BoolVar(&toJson, "toJSON", false, "Print output in JSON format.")
rootCmd.PersistentFlags().StringVarP(&logLevel, "logLevel", "l", "info", "Set logging level ["+internal.GetLoggingLevels()+"].")
rootCmd.PersistentFlags().DurationVarP(&timeout, "timeout", "t", 20, "Gorealis timeout (default: 20 seconds)")
rootCmd.PersistentFlags().DurationVarP(&timeout, "timeout", "t", 20 * time.Second, "Gorealis timeout.")
}
var rootCmd = &cobra.Command{
@ -144,7 +144,7 @@ func connect(cmd *cobra.Command, args []string) {
realisOptions := []realis.ClientOption{realis.BasicAuth(username, password),
realis.ThriftJSON(),
realis.Timeout(timeout * time.Second),
realis.Timeout(timeout),
realis.BackOff(realis.Backoff{
Steps: 2,
Duration: 10 * time.Second,