fix: race

This commit is contained in:
Kevin Franklin Kim 2025-05-19 09:42:01 +02:00
parent 6c104da662
commit 7a588bd108
No known key found for this signature in database

View File

@ -32,7 +32,7 @@ func (r *Repo) PollRoutine(ctx context.Context) error {
for {
select {
case <-ctx.Done():
l.Debug("routine canceled", zap.Error(ctx.Err()))
l.Debug("routine canceled")
return nil
case <-ticker.C:
chanReponse := make(chan updateResponse)
@ -52,7 +52,7 @@ func (r *Repo) UpdateRoutine(ctx context.Context) error {
for {
select {
case <-ctx.Done():
l.Debug("routine canceled", zap.Error(ctx.Err()))
l.Debug("routine canceled")
return nil
case resChan := <-r.updateInProgressChannel:
start := time.Now()