mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-13 11:25:19 +00:00
Cleanup deprecated Forever function
Since util.Forever function has been deprecated, we should cleanup these pieces of code.
This commit is contained in:
@@ -74,7 +74,7 @@ func (m *Mux) Channel(source string) chan interface{} {
|
||||
}
|
||||
newChannel := make(chan interface{})
|
||||
m.sources[source] = newChannel
|
||||
go util.Forever(func() { m.listen(source, newChannel) }, 0)
|
||||
go util.Until(func() { m.listen(source, newChannel) }, 0, util.NeverStop)
|
||||
return newChannel
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user