From 6dadd17a58e05b150366469c1dc7e7b9544845b0 Mon Sep 17 00:00:00 2001 From: Marco Kittel Date: Sun, 29 Jun 2025 10:30:23 +0200 Subject: [PATCH] =?UTF-8?q?Context=20an=20Eliofunc=20=C3=BCbergeben?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- eliofile/eliofile.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eliofile/eliofile.go b/eliofile/eliofile.go index 8cd6df8..85d7de7 100644 --- a/eliofile/eliofile.go +++ b/eliofile/eliofile.go @@ -24,7 +24,7 @@ type CountryCsvData struct { Data []string } -type ElioHandleFunc func(filename string, data chan<- CountryCsvData) bool +type ElioHandleFunc func(ctx context.Context, filename string, data chan<- CountryCsvData) bool type ElioDateiFoo struct { process ElioHandleFunc @@ -93,7 +93,7 @@ func (f *ElioDateiFoo) ScanCsv(ctx context.Context, data chan<- CountryCsvData) f.mu.Lock() f.haveDone[v.filename] = time.Now() f.mu.Unlock() - f.process(v.filename, data) + f.process(ctx, v.filename, data) } } }