Skip to content

Commit

Permalink
decrease read-timeout to 1min
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaeljesus committed Mar 6, 2018
1 parent 1361161 commit 807e0c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/steal.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func NewStealCmd() *cobra.Command {
cmd.PersistentFlags().StringVarP(&opts.from, "from", "f", "root:root@tcp(localhost:3306)/klepto", "Database dsn to steal from")
cmd.PersistentFlags().StringVarP(&opts.to, "to", "t", "os://stdout/", "Database to output to (default writes to stdOut)")
cmd.PersistentFlags().IntVar(&opts.concurrency, "concurrency", 4, "Sets the amount of dumps to be performed concurrently")
cmd.PersistentFlags().StringVar(&opts.readOpts.timeout, "read-timeout", "3m", "Sets the timeout for read operations")
cmd.PersistentFlags().StringVar(&opts.readOpts.timeout, "read-timeout", "1m", "Sets the timeout for read operations")
cmd.PersistentFlags().StringVar(&opts.writeOpts.timeout, "write-timeout", "30s", "Sets the timeout for write operations")
cmd.PersistentFlags().StringVar(&opts.readOpts.maxConnLifetime, "read-conn-lifetime", "0", "Sets the maximum amount of time a connection may be reused on the read database")
cmd.PersistentFlags().IntVar(&opts.readOpts.maxConns, "read-max-conns", 10, "Sets the maximum number of open connections to the read database")
Expand Down

0 comments on commit 807e0c0

Please sign in to comment.