feat: migrate redis breaker into hook (#3982)

This commit is contained in:
MarkJoyMa
2024-03-12 12:21:33 +08:00
committed by GitHub
parent f372b98d96
commit 7d90f906f5
9 changed files with 1113 additions and 1462 deletions

View File

@@ -51,7 +51,7 @@ func TestGetCluster(t *testing.T) {
Addr: r.Addr(),
Type: ClusterType,
tls: true,
hooks: []red.Hook{durationHook},
hooks: []red.Hook{defaultDurationHook},
})
if assert.NoError(t, err) {
assert.NotNil(t, c)