diff --git a/impl/pkg/service/pkarr.go b/impl/pkg/service/pkarr.go index 6b7b015f..fdc2d0b0 100644 --- a/impl/pkg/service/pkarr.go +++ b/impl/pkg/service/pkarr.go @@ -148,8 +148,8 @@ func (s *PkarrService) GetPkarr(ctx context.Context, id string) (*GetPkarrRespon // first do a cache lookup if s.cache.Has(id) { cacheItem := s.cache.Get(id) - until := cacheItem.ExpiresAt().Sub(time.Now()) - logrus.Debugf("resolved pkarr record<%s> from cache, with remaining TTL: %s", id, until) + until := time.Until(cacheItem.ExpiresAt()) + logrus.Debugf("resolved pkarr record<%s> from cache, with remaining TTL: %s", id, until.String()) return fromPkarrRecord(cacheItem.Value()) }