limit throttling to only queued channels

This commit is contained in:
Niko Storni 2019-07-22 16:24:13 -04:00
parent c193dae95a
commit 0aedf80386

View file

@ -154,7 +154,9 @@ func (s *SyncManager) Start() error {
}
for _, q := range queuesToSync {
//temporary override for sync-until to give tom the time to review the channels
s.syncProperties.SyncUntil = time.Now().AddDate(0, 0, -1).Unix()
if q == StatusQueued {
s.syncProperties.SyncUntil = time.Now().AddDate(0, 0, -1).Unix()
}
channels, err := s.apiConfig.FetchChannels(q, s.syncProperties)
if err != nil {
return err