From 1ffe0facd6bbb5d1de738b794a5f11ae54a3dbb2 Mon Sep 17 00:00:00 2001 From: Yuxi Zheng Date: Wed, 25 Oct 2023 18:43:16 +0800 Subject: [PATCH] make it shouldn't retry --- error.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/error.go b/error.go index 5a514eb..1e47707 100644 --- a/error.go +++ b/error.go @@ -48,7 +48,7 @@ func shouldRetry(err error, retryTimeout bool) bool { return true } if IsReadOnlyError(err) { - return true + return false } if strings.HasPrefix(s, "CLUSTERDOWN ") { return true