File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -528,7 +528,7 @@ func (c *PubSub) initMsgChan(size int) {
528
528
return
529
529
}
530
530
if errCount > 0 {
531
- time .Sleep (c . retryBackoff ( errCount ) )
531
+ time .Sleep (100 * time . Millisecond )
532
532
}
533
533
errCount ++
534
534
continue
@@ -586,7 +586,7 @@ func (c *PubSub) initAllChan(size int) {
586
586
return
587
587
}
588
588
if errCount > 0 {
589
- time .Sleep (c . retryBackoff ( errCount ) )
589
+ time .Sleep (100 * time . Millisecond )
590
590
}
591
591
errCount ++
592
592
continue
@@ -627,7 +627,3 @@ func (c *PubSub) sendMessage(msg interface{}, timer *time.Timer) {
627
627
"redis: %s channel is full for %s (message is dropped)" , c , pingTimeout )
628
628
}
629
629
}
630
-
631
- func (c * PubSub ) retryBackoff (attempt int ) time.Duration {
632
- return internal .RetryBackoff (attempt , c .opt .MinRetryBackoff , c .opt .MaxRetryBackoff )
633
- }
You can’t perform that action at this time.
0 commit comments