aboutsummaryrefslogtreecommitdiff
path: root/weed/filer/tarantool/tarantool_store.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/filer/tarantool/tarantool_store.go')
-rw-r--r--weed/filer/tarantool/tarantool_store.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/filer/tarantool/tarantool_store.go b/weed/filer/tarantool/tarantool_store.go
index 44727140a..4c9f8a600 100644
--- a/weed/filer/tarantool/tarantool_store.go
+++ b/weed/filer/tarantool/tarantool_store.go
@@ -51,7 +51,7 @@ func (store *TarantoolStore) Initialize(configuration weed_util.Configuration, p
timeoutStr := configuration.GetString(prefix + "timeout")
timeout, err := time.ParseDuration(timeoutStr)
if err != nil {
- return fmt.Errorf("parse tarantool store timeout: %v", err)
+ return fmt.Errorf("parse tarantool store timeout: %w", err)
}
maxReconnects := configuration.GetInt(prefix + "maxReconnects")
@@ -80,7 +80,7 @@ func (store *TarantoolStore) initialize(addresses []string, user string, passwor
ctx := context.Background()
p, err := pool.ConnectWithOpts(ctx, poolInstances, poolOpts)
if err != nil {
- return fmt.Errorf("Can't create connection pool: %v", err)
+ return fmt.Errorf("Can't create connection pool: %w", err)
}
_, err = p.Do(tarantool.NewPingRequest(), pool.ANY).Get()