feat: slow threshold customizable in redis (#1185)

* feat: slow threshold customizable in redis

* chore: improve config robustness
This commit is contained in:
Kevin Wan
2021-10-31 22:14:20 +08:00
committed by GitHub
parent b4d1c6da2c
commit 429f85a9de
8 changed files with 83 additions and 33 deletions

View File

@@ -1115,7 +1115,7 @@ func runOnRedisTLS(t *testing.T, fn func(client *Redis)) {
client.Close()
}
}()
fn(New(s.Addr(), WithTLS()))
fn(New(s.Addr(), WithTLS(), WithSlowThreshold(defaultSlowThreshold/2)))
}
func badType() Option {