mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-12 22:47:09 +08:00
vendor: github.com/moby/buildkit v0.21.0-rc1
Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
This commit is contained in:
5
vendor/github.com/moby/buildkit/util/flightcontrol/flightcontrol.go
generated
vendored
5
vendor/github.com/moby/buildkit/util/flightcontrol/flightcontrol.go
generated
vendored
@ -4,6 +4,7 @@ import (
|
||||
"context"
|
||||
"io"
|
||||
"math/rand"
|
||||
"slices"
|
||||
"sort"
|
||||
"sync"
|
||||
"time"
|
||||
@ -211,7 +212,7 @@ func (c *call[T]) Err() error {
|
||||
}
|
||||
}
|
||||
|
||||
func (c *call[T]) Value(key interface{}) interface{} {
|
||||
func (c *call[T]) Value(key any) any {
|
||||
if key == contextKey {
|
||||
return c.progressState
|
||||
}
|
||||
@ -353,7 +354,7 @@ func (ps *progressState) close(pw progress.Writer) {
|
||||
for i, w := range ps.writers {
|
||||
if w == rw {
|
||||
w.Close()
|
||||
ps.writers = append(ps.writers[:i], ps.writers[i+1:]...)
|
||||
ps.writers = slices.Delete(ps.writers, i, i+1)
|
||||
break
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user