mirror of
https://github.com/kubernetes/client-go.git
synced 2025-08-13 13:06:03 +00:00
Avoid using %#v
for errors when %T is more informative
`%#v` may have significant performance costs in frequently invoked code. Kubernetes-commit: 435db312e1773d3ad506604219b9b1d00176d6fc
This commit is contained in:
parent
3d7e523148
commit
c48e0dd815
2
tools/cache/shared_informer.go
vendored
2
tools/cache/shared_informer.go
vendored
@ -555,7 +555,7 @@ func (p *processorListener) run() {
|
||||
case deleteNotification:
|
||||
p.handler.OnDelete(notification.oldObj)
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user