@@ -698,21 +698,21 @@ func SetupClientRetry(t *testing.T, fn func(mock *mockConn) Client) {
698698 c , m := setup ()
699699 if cli , ok := c .(* sentinelClient ); ok {
700700 cli .retryHandler = & mockRetryHandler {
701- WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , err error ) bool {
701+ WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , _ Completed , err error ) bool {
702702 return false
703703 },
704704 }
705705 }
706706 if cli , ok := c .(* clusterClient ); ok {
707707 cli .retryHandler = & mockRetryHandler {
708- WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , err error ) bool {
708+ WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , _ Completed , err error ) bool {
709709 return false
710710 },
711711 }
712712 }
713713 if cli , ok := c .(* singleClient ); ok {
714714 cli .retryHandler = & mockRetryHandler {
715- WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , err error ) bool {
715+ WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , _ Completed , err error ) bool {
716716 return false
717717 },
718718 }
@@ -768,17 +768,17 @@ func SetupClientRetry(t *testing.T, fn func(mock *mockConn) Client) {
768768 c , m := setup ()
769769 if cli , ok := c .(* sentinelClient ); ok {
770770 cli .retryHandler = & mockRetryHandler {
771- WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , err error ) bool {
771+ WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , _ Completed , err error ) bool {
772772 return false
773773 },
774774 }
775775 }
776776 if cli , ok := c .(* clusterClient ); ok {
777777 cli .retryHandler = & mockRetryHandler {
778- WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , err error ) bool {
778+ WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , _ Completed , err error ) bool {
779779 return false
780780 },
781- RetryDelayFn : func (attempts int , err error ) time.Duration {
781+ RetryDelayFn : func (attempts int , _ Completed , err error ) time.Duration {
782782 return - 1
783783 },
784784 WaitForRetryFn : func (ctx context.Context , duration time.Duration ) {
@@ -790,7 +790,7 @@ func SetupClientRetry(t *testing.T, fn func(mock *mockConn) Client) {
790790 }
791791 if cli , ok := c .(* singleClient ); ok {
792792 cli .retryHandler = & mockRetryHandler {
793- WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , err error ) bool {
793+ WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , _ Completed , err error ) bool {
794794 return false
795795 },
796796 }
@@ -846,21 +846,21 @@ func SetupClientRetry(t *testing.T, fn func(mock *mockConn) Client) {
846846 c , m := setup ()
847847 if cli , ok := c .(* sentinelClient ); ok {
848848 cli .retryHandler = & mockRetryHandler {
849- WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , err error ) bool {
849+ WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , _ Completed , err error ) bool {
850850 return false
851851 },
852852 }
853853 }
854854 if cli , ok := c .(* clusterClient ); ok {
855855 cli .retryHandler = & mockRetryHandler {
856- WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , err error ) bool {
856+ WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , _ Completed , err error ) bool {
857857 return false
858858 },
859859 }
860860 }
861861 if cli , ok := c .(* singleClient ); ok {
862862 cli .retryHandler = & mockRetryHandler {
863- WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , err error ) bool {
863+ WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , _ Completed , err error ) bool {
864864 return false
865865 },
866866 }
@@ -908,17 +908,17 @@ func SetupClientRetry(t *testing.T, fn func(mock *mockConn) Client) {
908908 c , m := setup ()
909909 if cli , ok := c .(* sentinelClient ); ok {
910910 cli .retryHandler = & mockRetryHandler {
911- WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , err error ) bool {
911+ WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , _ Completed , err error ) bool {
912912 return false
913913 },
914914 }
915915 }
916916 if cli , ok := c .(* clusterClient ); ok {
917917 cli .retryHandler = & mockRetryHandler {
918- WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , err error ) bool {
918+ WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , _ Completed , err error ) bool {
919919 return false
920920 },
921- RetryDelayFn : func (attempts int , err error ) time.Duration {
921+ RetryDelayFn : func (attempts int , _ Completed , err error ) time.Duration {
922922 return - 1
923923 },
924924 WaitForRetryFn : func (ctx context.Context , duration time.Duration ) {
@@ -930,7 +930,7 @@ func SetupClientRetry(t *testing.T, fn func(mock *mockConn) Client) {
930930 }
931931 if cli , ok := c .(* singleClient ); ok {
932932 cli .retryHandler = & mockRetryHandler {
933- WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , err error ) bool {
933+ WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , _ Completed , err error ) bool {
934934 return false
935935 },
936936 }
@@ -975,21 +975,21 @@ func SetupClientRetry(t *testing.T, fn func(mock *mockConn) Client) {
975975 c , m := setup ()
976976 if cli , ok := c .(* sentinelClient ); ok {
977977 cli .retryHandler = & mockRetryHandler {
978- WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , err error ) bool {
978+ WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , _ Completed , err error ) bool {
979979 return false
980980 },
981981 }
982982 }
983983 if cli , ok := c .(* clusterClient ); ok {
984984 cli .retryHandler = & mockRetryHandler {
985- WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , err error ) bool {
985+ WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , _ Completed , err error ) bool {
986986 return false
987987 },
988988 }
989989 }
990990 if cli , ok := c .(* singleClient ); ok {
991991 cli .retryHandler = & mockRetryHandler {
992- WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , err error ) bool {
992+ WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , _ Completed , err error ) bool {
993993 return false
994994 },
995995 }
@@ -1052,14 +1052,14 @@ func SetupClientRetry(t *testing.T, fn func(mock *mockConn) Client) {
10521052 if ret := c .Dedicated (func (cc DedicatedClient ) error {
10531053 if cli , ok := cc .(* dedicatedClusterClient ); ok {
10541054 cli .retryHandler = & mockRetryHandler {
1055- WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , err error ) bool {
1055+ WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , _ Completed , err error ) bool {
10561056 return false
10571057 },
10581058 }
10591059 }
10601060 if cli , ok := cc .(* dedicatedSingleClient ); ok {
10611061 cli .retryHandler = & mockRetryHandler {
1062- WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , err error ) bool {
1062+ WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , _ Completed , err error ) bool {
10631063 return false
10641064 },
10651065 }
@@ -1137,14 +1137,14 @@ func SetupClientRetry(t *testing.T, fn func(mock *mockConn) Client) {
11371137 if ret := c .Dedicated (func (cc DedicatedClient ) error {
11381138 if cli , ok := cc .(* dedicatedClusterClient ); ok {
11391139 cli .retryHandler = & mockRetryHandler {
1140- WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , err error ) bool {
1140+ WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , _ Completed , err error ) bool {
11411141 return false
11421142 },
11431143 }
11441144 }
11451145 if cli , ok := cc .(* dedicatedSingleClient ); ok {
11461146 cli .retryHandler = & mockRetryHandler {
1147- WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , err error ) bool {
1147+ WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , _ Completed , err error ) bool {
11481148 return false
11491149 },
11501150 }
@@ -1216,14 +1216,14 @@ func SetupClientRetry(t *testing.T, fn func(mock *mockConn) Client) {
12161216 if ret := c .Dedicated (func (cc DedicatedClient ) error {
12171217 if cli , ok := cc .(* dedicatedClusterClient ); ok {
12181218 cli .retryHandler = & mockRetryHandler {
1219- WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , err error ) bool {
1219+ WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , _ Completed , err error ) bool {
12201220 return false
12211221 },
12221222 }
12231223 }
12241224 if cli , ok := cc .(* dedicatedSingleClient ); ok {
12251225 cli .retryHandler = & mockRetryHandler {
1226- WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , err error ) bool {
1226+ WaitOrSkipRetryFunc : func (ctx context.Context , attempts int , _ Completed , err error ) bool {
12271227 return false
12281228 },
12291229 }
0 commit comments