feat: slow threshold customizable in redis (#1187)

This commit is contained in:
Kevin Wan
2021-11-01 08:20:35 +08:00
committed by GitHub
parent 8be0f77d96
commit f13e6f1149
6 changed files with 48 additions and 54 deletions

View File

@@ -32,7 +32,7 @@ func getClient(r *Redis) (*red.Client, error) {
MinIdleConns: idleConns,
TLSConfig: tlsConfig,
})
store.WrapProcess(checkDuration(r.slowThreshold))
store.WrapProcess(checkDuration)
return store, nil
})
if err != nil {