mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-31 16:46:54 +00:00
pkg/proxy/config: use blank identifier instead of ignoring error
Signed-off-by: Daman Arora <aroradaman@gmail.com>
This commit is contained in:
@@ -75,7 +75,7 @@ func NewEndpointSliceConfig(endpointSliceInformer discoveryinformers.EndpointSli
|
||||
listerSynced: endpointSliceInformer.Informer().HasSynced,
|
||||
}
|
||||
|
||||
endpointSliceInformer.Informer().AddEventHandlerWithResyncPeriod(
|
||||
_, _ = endpointSliceInformer.Informer().AddEventHandlerWithResyncPeriod(
|
||||
cache.ResourceEventHandlerFuncs{
|
||||
AddFunc: result.handleAddEndpointSlice,
|
||||
UpdateFunc: result.handleUpdateEndpointSlice,
|
||||
@@ -166,7 +166,7 @@ func NewServiceConfig(serviceInformer coreinformers.ServiceInformer, resyncPerio
|
||||
listerSynced: serviceInformer.Informer().HasSynced,
|
||||
}
|
||||
|
||||
serviceInformer.Informer().AddEventHandlerWithResyncPeriod(
|
||||
_, _ = serviceInformer.Informer().AddEventHandlerWithResyncPeriod(
|
||||
cache.ResourceEventHandlerFuncs{
|
||||
AddFunc: result.handleAddService,
|
||||
UpdateFunc: result.handleUpdateService,
|
||||
@@ -293,7 +293,7 @@ func NewNodeConfig(nodeInformer coreinformers.NodeInformer, resyncPeriod time.Du
|
||||
listerSynced: nodeInformer.Informer().HasSynced,
|
||||
}
|
||||
|
||||
nodeInformer.Informer().AddEventHandlerWithResyncPeriod(
|
||||
_, _ = nodeInformer.Informer().AddEventHandlerWithResyncPeriod(
|
||||
cache.ResourceEventHandlerFuncs{
|
||||
AddFunc: result.handleAddNode,
|
||||
UpdateFunc: result.handleUpdateNode,
|
||||
|
Reference in New Issue
Block a user