mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-12 20:57:20 +00:00
Push the full channel logic into the implementation of the broadcaster
in watch/mux.go rather than being in the client event recording code.
This commit is contained in:
@@ -39,7 +39,7 @@ type GenericRegistry struct {
|
||||
func NewGeneric(list runtime.Object) *GenericRegistry {
|
||||
return &GenericRegistry{
|
||||
ObjectList: list,
|
||||
Broadcaster: watch.NewBroadcaster(0),
|
||||
Broadcaster: watch.NewBroadcaster(0, watch.WaitIfChannelFull),
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -36,7 +36,7 @@ type PodRegistry struct {
|
||||
func NewPodRegistry(pods *api.PodList) *PodRegistry {
|
||||
return &PodRegistry{
|
||||
Pods: pods,
|
||||
broadcaster: watch.NewBroadcaster(0),
|
||||
broadcaster: watch.NewBroadcaster(0, watch.WaitIfChannelFull),
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user