improve update process
This commit is contained in:
parent
50d24ead95
commit
98a1c62eba
1 changed files with 3 additions and 2 deletions
|
@ -189,10 +189,11 @@ func selfSync(cmd *cobra.Command, args []string) {
|
|||
//TODO: extract method
|
||||
queuesToSync := []string{
|
||||
StatusSyncing,
|
||||
StatusQueued,
|
||||
}
|
||||
if syncUpdate {
|
||||
queuesToSync = append(queuesToSync, StatusSynced)
|
||||
} else {
|
||||
queuesToSync = append(queuesToSync, StatusQueued)
|
||||
}
|
||||
for _, v := range queuesToSync {
|
||||
interruptedByUser, err := processQueue(v, ytAPIKey, &syncCount)
|
||||
|
@ -269,7 +270,7 @@ func syncChannels(channelsToSync []APIYoutubeChannel, ytAPIKey string, syncCount
|
|||
//acquire the lock on the channel
|
||||
err := setChannelSyncStatus(channelID, StatusSyncing)
|
||||
if err != nil {
|
||||
util.SendToSlackError("Failed acquiring sync rights for channel %s: %v", lbryChannelName, err)
|
||||
//util.SendToSlackError("Failed acquiring sync rights for channel %s: %v", lbryChannelName, err)
|
||||
continue
|
||||
}
|
||||
//increment only if successfully acquired lock
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue