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:
Kevin Krakauer
2022-11-08 13:14:06 -08:00
committed by gVisor bot
parent c82b70015d
commit d8aa09e04c
220 changed files with 509 additions and 509 deletions
+8 -8
View File
@@ -58,27 +58,27 @@ func NewCalibratedClock(c ClockID) *CalibratedClock {
}
// Debugf logs at debug level.
func (c *CalibratedClock) Debugf(format string, v ...interface{}) {
func (c *CalibratedClock) Debugf(format string, v ...any) {
if log.IsLogging(log.Debug) {
args := []interface{}{c.ref.clockID}
args := []any{c.ref.clockID}
args = append(args, v...)
log.Debugf("CalibratedClock(%v): "+format, args...)
}
}
// Infof logs at debug level.
func (c *CalibratedClock) Infof(format string, v ...interface{}) {
func (c *CalibratedClock) Infof(format string, v ...any) {
if log.IsLogging(log.Info) {
args := []interface{}{c.ref.clockID}
args := []any{c.ref.clockID}
args = append(args, v...)
log.Infof("CalibratedClock(%v): "+format, args...)
}
}
// Warningf logs at debug level.
func (c *CalibratedClock) Warningf(format string, v ...interface{}) {
func (c *CalibratedClock) Warningf(format string, v ...any) {
if log.IsLogging(log.Warning) {
args := []interface{}{c.ref.clockID}
args := []any{c.ref.clockID}
args = append(args, v...)
log.Warningf("CalibratedClock(%v): "+format, args...)
}
@@ -86,14 +86,14 @@ func (c *CalibratedClock) Warningf(format string, v ...interface{}) {
// reset forces the clock to restart the calibration process, logging the
// passed message.
func (c *CalibratedClock) reset(str string, v ...interface{}) {
func (c *CalibratedClock) reset(str string, v ...any) {
c.mu.Lock()
defer c.mu.Unlock()
c.resetLocked(str, v...)
}
// resetLocked is equivalent to reset with c.mu already held for writing.
func (c *CalibratedClock) resetLocked(str string, v ...interface{}) {
func (c *CalibratedClock) resetLocked(str string, v ...any) {
c.Warningf(str+" Resetting clock; time may jump.", v...)
c.ready = false
c.ref.Reset()