package inventory import "time" // SetLastSeen overrides a node's heartbeat timestamp. // // It exists for tests that run on a synthetic clock: Upsert and Touch stamp the // wall clock, which is decades away from a fake timeline and would make every // node look silent. func (s *Store) SetLastSeen(id string, at time.Time) { s.mu.Lock() defer s.mu.Unlock() if n, ok := s.nodes[id]; ok { n.LastSeen = at } }