mirror of
https://github.com/foomo/contentserver.git
synced 2025-10-16 12:25:44 +00:00
fix: race
This commit is contained in:
parent
d058ce2b41
commit
6c104da662
@ -92,7 +92,7 @@ func (r *Repo) DimensionUpdateRoutine(ctx context.Context) error {
|
||||
for {
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
l.Debug("routine canceled", zap.Error(ctx.Err()))
|
||||
l.Debug("routine canceled")
|
||||
return nil
|
||||
case newDimension := <-r.dimensionUpdateChannel:
|
||||
l.Debug("received a new dimension", zap.String("dimension", newDimension.Dimension))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user