refactor: inline single-use getcached wrapper

This commit is contained in:
2026-06-23 17:16:56 +02:00
parent c777de9f06
commit f6ed2c673d
2 changed files with 1 additions and 5 deletions

View File

@@ -141,7 +141,7 @@ func (s *EpisodeService) refresh(ctx context.Context, anime domain.Anime) (domai
providerAvailability, source, providerErr := s.fetchProviderAvailability(ctx, anime)
if providerErr != nil {
s.markFailure(ctx, anime, providerErr)
if cached, ok := s.getCached(ctx, anime); ok {
if cached, ok := s.getDecodedCached(ctx, anime); ok {
observability.Warn(
"episodes_provider_failed_serving_stale_cache",
"episodes",