From b2864ed15e2a49c392593086e99559a8268bc550 Mon Sep 17 00:00:00 2001 From: Alex Browne Date: Tue, 28 Jul 2020 16:38:35 -0700 Subject: [PATCH] Fix bug when saving ordersync progress --- core/ordersync/ordersync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/ordersync/ordersync.go b/core/ordersync/ordersync.go index 0c6b5683c..3c428bc27 100644 --- a/core/ordersync/ordersync.go +++ b/core/ordersync/ordersync.go @@ -363,7 +363,7 @@ func (s *Service) GetOrders(ctx context.Context, minPeers int) error { "provider": id.Pretty(), }).Debug("could not get orders from peer via ordersync") m.Lock() - if nextRequest != nil { + if nextFirstRequest != nil { nextRequestForPeer[id] = nextFirstRequest } m.Unlock()