Context an Eliofunc übergeben

This commit is contained in:
Marco Kittel 2025-06-29 10:30:23 +02:00
parent 07f17c6a02
commit 6dadd17a58
1 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ type CountryCsvData struct {
Data []string 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 { type ElioDateiFoo struct {
process ElioHandleFunc process ElioHandleFunc
@ -93,7 +93,7 @@ func (f *ElioDateiFoo) ScanCsv(ctx context.Context, data chan<- CountryCsvData)
f.mu.Lock() f.mu.Lock()
f.haveDone[v.filename] = time.Now() f.haveDone[v.filename] = time.Now()
f.mu.Unlock() f.mu.Unlock()
f.process(v.filename, data) f.process(ctx, v.filename, data)
} }
} }
} }