mirror of https://github.com/milvus-io/milvus.git
Fix zero length slice declaration in util/retry/retry.go (#12576)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>pull/12579/head
parent
6dd7afd1a4
commit
2bd32353cf
|
@ -28,7 +28,7 @@ func Do(ctx context.Context, fn func() error, opts ...Option) error {
|
|||
for _, opt := range opts {
|
||||
opt(c)
|
||||
}
|
||||
el := make(ErrorList, 0)
|
||||
var el ErrorList
|
||||
|
||||
for i := uint(0); i < c.attempts; i++ {
|
||||
if err := fn(); err != nil {
|
||||
|
|
Loading…
Reference in New Issue