From fb604be460ac04acc030768c9dfc6d819eff1f4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rton=20Elek?= Date: Mon, 25 Oct 2021 12:14:59 +0200 Subject: [PATCH] satellite/gracefulexit: use nodecache with gracefulexit Change-Id: I700caf6dfd06bd3b3970a8cf7c5a79da4af27b5f --- satellite/overlay/service.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/satellite/overlay/service.go b/satellite/overlay/service.go index 38e050804..1ae9148c9 100644 --- a/satellite/overlay/service.go +++ b/satellite/overlay/service.go @@ -343,14 +343,9 @@ func (service *Service) IsOnline(node *NodeDossier) bool { } // FindStorageNodesForGracefulExit searches the overlay network for nodes that meet the provided requirements for graceful-exit requests. -// -// The main difference between this method and the normal FindStorageNodes is that here we avoid using the cache. func (service *Service) FindStorageNodesForGracefulExit(ctx context.Context, req FindStorageNodesRequest) (_ []*SelectedNode, err error) { defer mon.Task()(&ctx)(&err) - if service.config.Node.AsOfSystemTime.Enabled && service.config.Node.AsOfSystemTime.DefaultInterval < 0 { - req.AsOfSystemInterval = service.config.Node.AsOfSystemTime.DefaultInterval - } - return service.FindStorageNodesWithPreferences(ctx, req, &service.config.Node) + return service.UploadSelectionCache.GetNodes(ctx, req) } // FindStorageNodesForUpload searches the overlay network for nodes that meet the provided requirements for upload.