From 9a9b751626e626a2a8293492748851f27a4e6b34 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Thu, 29 Jun 2023 16:46:52 +0200 Subject: [PATCH] wip --- lib/model/folder_sendrecv.go | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/model/folder_sendrecv.go b/lib/model/folder_sendrecv.go index 693b455ac..4050f06ff 100644 --- a/lib/model/folder_sendrecv.go +++ b/lib/model/folder_sendrecv.go @@ -163,6 +163,7 @@ func (f *sendReceiveFolder) pull() (bool, error) { scanChan := make(chan string) go f.pullScannerRoutine(scanChan) + defer close(scanChan) metricFolderPulls.WithLabelValues(f.ID).Inc() ctx, cancel := context.WithCancel(f.ctx)