Cleanup deprecated Forever function

Since util.Forever function has been deprecated, we should cleanup these
pieces of code.
This commit is contained in:
caogaojin
2015-08-24 09:59:15 +08:00
parent 5fe7029e68
commit 60cb4406e9
18 changed files with 37 additions and 42 deletions

View File

@@ -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
}