mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
Migrate golanglint-ci config to V2 (#21081)
This commit is contained in:
@@ -85,10 +85,8 @@ func (r *RingBuffer) SetBlocking(block bool) *RingBuffer {
|
||||
// A goroutine will be started and run until the provided context is canceled.
|
||||
func (r *RingBuffer) WithCancel(ctx context.Context) *RingBuffer {
|
||||
go func() {
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
r.CloseWithError(ctx.Err())
|
||||
}
|
||||
<-ctx.Done()
|
||||
r.CloseWithError(ctx.Err())
|
||||
}()
|
||||
return r
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user