mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-17 15:13:08 +00:00
Rename watch.Mux -> watch.Broadcaster
A few reasons: - Mux is already widely used in the codebase to refer to a http handler mux. - Original meaning of Mux was something which sent a chose one of several inputs to and output. This sends one output to all outputs. Broadcast captures that idea better. - Aligns with similar class config.Broadcaster (see #2747)
This commit is contained in:
@@ -118,7 +118,7 @@ func GetEvents(f func(*api.Event)) watch.Interface {
|
||||
|
||||
const queueLen = 1000
|
||||
|
||||
var events = watch.NewMux(queueLen)
|
||||
var events = watch.NewBroadcaster(queueLen)
|
||||
|
||||
// Event constructs an event from the given information and puts it in the queue for sending.
|
||||
// 'object' is the object this event is about. Event will make a reference-- or you may also
|
||||
|
Reference in New Issue
Block a user