mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 04:33:26 +00:00
Avoid using %#v
for errors when %T is more informative
`%#v` may have significant performance costs in frequently invoked code.
This commit is contained in:
parent
ecd43f13cf
commit
435db312e1
@ -555,7 +555,7 @@ func (p *processorListener) run() {
|
|||||||
case deleteNotification:
|
case deleteNotification:
|
||||||
p.handler.OnDelete(notification.oldObj)
|
p.handler.OnDelete(notification.oldObj)
|
||||||
default:
|
default:
|
||||||
utilruntime.HandleError(fmt.Errorf("unrecognized notification: %#v", next))
|
utilruntime.HandleError(fmt.Errorf("unrecognized notification: %T", next))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// the only way to get here is if the p.nextCh is empty and closed
|
// the only way to get here is if the p.nextCh is empty and closed
|
||||||
|
Loading…
Reference in New Issue
Block a user