From 24cf937e14a4ac37fca3766287a79295185b4b24 Mon Sep 17 00:00:00 2001 From: Niko Storni Date: Tue, 18 Aug 2020 01:09:53 +0200 Subject: [PATCH] retry on support list failures --- manager/transfer.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/manager/transfer.go b/manager/transfer.go index d04272d..fde2530 100644 --- a/manager/transfer.go +++ b/manager/transfer.go @@ -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