Skip to content

Commit

Permalink
update until log
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe committed Nov 30, 2023
1 parent dc88e5b commit 3f45117
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions impl/pkg/service/pkarr.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}

Expand Down

0 comments on commit 3f45117

Please sign in to comment.