Skip to content

Commit

Permalink
set duration to second (#4231)
Browse files Browse the repository at this point in the history
  • Loading branch information
briandowns authored Oct 15, 2021
1 parent 0452f01 commit e11a4bf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions pkg/cli/cmds/etcd_snapshot.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
package cmds

import (
"time"

"github.com/rancher/k3s/pkg/version"
"github.com/urfave/cli"
)
Expand Down Expand Up @@ -84,9 +86,9 @@ var EtcdSnapshotFlags = []cli.Flag{
},
&cli.DurationFlag{
Name: "s3-timeout,etcd-s3-timeout",
Usage: "(db) S3 timeout in seconds",
Usage: "(db) S3 timeout",
Destination: &ServerConfig.EtcdS3Timeout,
Value: 30,
Value: 30 * time.Second,
},
}

Expand Down
4 changes: 2 additions & 2 deletions pkg/cli/cmds/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,9 +341,9 @@ func NewServerCommand(action func(*cli.Context) error) cli.Command {
},
&cli.DurationFlag{
Name: "etcd-s3-timeout",
Usage: "(db) S3 timeout in seconds",
Usage: "(db) S3 timeout",
Destination: &ServerConfig.EtcdS3Timeout,
Value: 30,
Value: 30 * time.Second,
},
cli.StringFlag{
Name: "default-local-storage-path",
Expand Down

0 comments on commit e11a4bf

Please sign in to comment.