mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 20:09:57 +08:00
Fix zero length slice declaration in util/retry/retry.go (#12576)
Signed-off-by: Congqi Xia <congqi.xia@zilliz.com>
This commit is contained in:
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
Block a user