code refactoring, dependencies update
This commit is contained in:
@@ -64,7 +64,8 @@ func (m *MessageQueue) downloadConsumer() {
|
||||
|
||||
if p.Progress.Status != StatusCompleted {
|
||||
if p.Livestream {
|
||||
go p.Start() // livestreams have higher priorty and will ignore the queue
|
||||
// livestreams have higher priorty and they ignore the semaphore
|
||||
go p.Start()
|
||||
} else {
|
||||
p.Start()
|
||||
}
|
||||
|
||||
@@ -168,10 +168,6 @@ func (p *Process) Start() {
|
||||
ETA: progress.Eta,
|
||||
}
|
||||
|
||||
if p.Livestream {
|
||||
p.Progress.Status = StatusLivestream
|
||||
}
|
||||
|
||||
slog.Info("progress",
|
||||
slog.String("id", p.getShortId()),
|
||||
slog.String("url", p.Url),
|
||||
|
||||
Reference in New Issue
Block a user