git/githistory/log: don't loose 't' scope
This commit is contained in:
parent
12fb91a431
commit
4546bec8c3
@ -88,11 +88,11 @@ func (l *Logger) Percentage(msg string, total uint64) *PercentageTask {
|
||||
func (l *Logger) enqueue(ts ...Task) {
|
||||
if l == nil {
|
||||
for _, t := range ts {
|
||||
go func() {
|
||||
go func(t Task) {
|
||||
for range <-t.Updates() {
|
||||
// Discard all updates.
|
||||
}
|
||||
}()
|
||||
}(t)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user