mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
convert uses of interface{} to any
Done via:
find . -name "*.go" | xargs sed -i -E 's/interface\{\}/any/g'
PiperOrigin-RevId: 487033228
This commit is contained in:
committed by
gVisor bot
parent
c82b70015d
commit
d8aa09e04c
@@ -190,7 +190,7 @@ func BenchmarkSleeperMultiNotifyWaitAck(b *testing.B) {
|
||||
// The sleep package doesn't provide sync.Pool allocation of Wakers;
|
||||
// we do for a fairer comparison.
|
||||
wakerPool := sync.Pool{
|
||||
New: func() interface{} {
|
||||
New: func() any {
|
||||
return &sleep.Waker{}
|
||||
},
|
||||
}
|
||||
@@ -229,7 +229,7 @@ func BenchmarkSleeperTempNotifyWaitAck(b *testing.B) {
|
||||
// The sleep package doesn't provide sync.Pool allocation of Sleepers;
|
||||
// we do for a fairer comparison.
|
||||
sleeperPool := sync.Pool{
|
||||
New: func() interface{} {
|
||||
New: func() any {
|
||||
return &sleep.Sleeper{}
|
||||
},
|
||||
}
|
||||
|
||||
@@ -174,7 +174,7 @@ func (w *Waiter) NotifyPending() {
|
||||
}
|
||||
|
||||
var waiterPool = sync.Pool{
|
||||
New: func() interface{} {
|
||||
New: func() any {
|
||||
w := &Waiter{}
|
||||
w.Init()
|
||||
return w
|
||||
|
||||
Reference in New Issue
Block a user