Skip to content
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.

Fix bug when saving ordersync progress #889

Merged
merged 1 commit into from
Jul 28, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion core/ordersync/ordersync.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down