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
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user