From 4c3f4246625462e8dac17de57333e6b2c1be17ea Mon Sep 17 00:00:00 2001 From: Rafael Jesus Date: Tue, 6 Mar 2018 13:47:45 +0100 Subject: [PATCH] change read opt description --- cmd/steal.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/steal.go b/cmd/steal.go index e7fda84..ec042cc 100644 --- a/cmd/steal.go +++ b/cmd/steal.go @@ -50,8 +50,8 @@ 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", "30s", "Sets the timeout for all read operations") - cmd.PersistentFlags().StringVar(&opts.writeOpts.timeout, "write-timeout", "30s", "Sets the timeout for all write operations") + cmd.PersistentFlags().StringVar(&opts.readOpts.timeout, "read-timeout", "3m", "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") cmd.PersistentFlags().IntVar(&opts.readOpts.maxIdleConns, "read-max-idle-conns", 0, "Sets the maximum number of connections in the idle connection pool for the read database")