0.2.81
This commit is contained in:
@@ -673,11 +673,10 @@ func (s *Server) heroRow(
|
||||
location = time.Local
|
||||
}
|
||||
candidates := s.heroCandidates(ctx, rows, now)
|
||||
policy, err := s.store.HeroPolicy(ctx)
|
||||
if err != nil {
|
||||
s.loggerFor(ctx).Warn("hero policy unavailable", "error", err)
|
||||
policy = store.HeroPolicy{}
|
||||
}
|
||||
// The cached read, not a query: this document is now also read by the status poll, and
|
||||
// it must be the same copy the cache key was derived from a moment ago or the answer
|
||||
// filed under a revision would not be the answer that revision names.
|
||||
policy := s.currentHeroPolicy(ctx)
|
||||
placementPolicy := policy.Placement(store.HeroPlacementHome)
|
||||
pinned := s.pinnedHeroCandidates(ctx, placementPolicy.PinnedItemIDs)
|
||||
// Manual pins always lead. Schedules resolve on the gateway (never on a television),
|
||||
|
||||
Reference in New Issue
Block a user