Skip to content

Commit

Permalink
Update repositoryWrapper.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Falokut committed Feb 17, 2024
1 parent d7cfb80 commit f464460
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/service/repositoryWrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -381,10 +381,11 @@ func (w *cinemaRepositoryWrapper) GetHalls(ctx context.Context,
w.metrics.IncCacheHits("GetHalls", len(ids)-len(notFoundedIds))
w.metrics.IncCacheMiss("GetHalls", len(notFoundedIds))
ids = notFoundedIds
notFoundedIds = nil
}

w.logger.Info("Searching halls in repository")
halls, err := w.repo.GetHalls(ctx, notFoundedIds)
halls, err := w.repo.GetHalls(ctx, ids)
if err != nil {
return nil, w.createErrorResponceWithSpan(span, ErrInternal, err.Error())
}
Expand Down

0 comments on commit f464460

Please sign in to comment.