retry on support list failures
This commit is contained in:
parent
0b002c8228
commit
24cf937e14
1 changed files with 4 additions and 1 deletions
|
@ -71,7 +71,10 @@ func abandonSupports(s *Sync) (float64, error) {
|
|||
for page := uint64(1); page <= totalPages; page++ {
|
||||
supports, err := s.daemon.SupportList(&defaultAccount, page, 50)
|
||||
if err != nil {
|
||||
return 0, errors.Prefix("cannot list claims", err)
|
||||
supports, err = s.daemon.SupportList(&defaultAccount, page, 50)
|
||||
if err != nil {
|
||||
return 0, errors.Prefix("cannot list supports", err)
|
||||
}
|
||||
}
|
||||
allSupports = append(allSupports, (*supports).Items...)
|
||||
totalPages = (*supports).TotalPages
|
||||
|
|
Loading…
Reference in a new issue