lbryio / lbry.go

MIT License
29 stars 20 forks source link

Adjust ytsync queues #19

Closed nikooo777 closed 6 years ago

nikooo777 commented 6 years ago

A channel might be in one of the following states:

The ytsync tool is capable of fetching from all those queues depending on the startup instructions.

When syncing without specific flags the behavior should be the following:

1) process the syncing queue (if anything was left half-way previously it will be finished first) 2) sync the queued queue 3) repeat endlessly or until the maximum number of cycles (specified) is reached

When syncing with the update flag:

1) process the syncing queue (if anything was left half-way previously it will be finished first) 2) sync the synced queue (all previously synced channels will be updated) 3) repeat endlessly or until the maximum number of cycles (specified) is reached

when syncing with a status specified: 1) sync that specified queue only

Something in the logic isn't quite right and the wrong queues are pulled.