From 27e04da1e5104a0e1817110330dad23797444453 Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 21 Jul 2020 15:03:16 +0200 Subject: [PATCH] Use contexts for updates network connections --- updates/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/updates/main.go b/updates/main.go index 84aa132e..ba08d808 100644 --- a/updates/main.go +++ b/updates/main.go @@ -150,7 +150,7 @@ func start() error { Beta: false, }) - err = registry.LoadIndexes() + err = registry.LoadIndexes(module.Ctx) if err != nil { log.Warningf("updates: failed to load indexes: %s", err) } @@ -234,7 +234,7 @@ func checkForUpdates(ctx context.Context) (err error) { } }() - if err = registry.UpdateIndexes(); err != nil { + if err = registry.UpdateIndexes(ctx); err != nil { log.Warningf("updates: failed to update indexes: %s", err) }