Skip to content

Commit

Permalink
chore: what is life
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsol committed Dec 23, 2023
1 parent cf56fa1 commit bc87c81
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cli/cache/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,15 @@ func DownloadOrCache(cacheKey string, hash string, url string, updates chan<- ut

outer:
for {
slog.Debug("LOOP")
select {
case update := <-upstreamUpdates:
slog.Debug("forking", slog.Int64("running", update.Completed), slog.Int64("total", update.Total))
for _, u := range group.updates {
u <- update
}
case <-upstreamWaiter:
slog.Debug("I AM FREE")
break outer
}
}
Expand Down

0 comments on commit bc87c81

Please sign in to comment.