Merge pull request #19 from ericxtang/master

update example code to the new version
This commit is contained in:
nareix 2017-01-10 13:08:03 +08:00 committed by GitHub
commit 4b82a8ce74

View File

@ -53,8 +53,8 @@ func main() {
ch := channels[conn.URL.Path]
if ch == nil {
ch = &Channel{}
ch.que = pubsub.NewQueue(streams)
ch.que.SetMaxDuration(time.Minute)
ch.que = pubsub.NewQueue()
ch.que.WriteHeader(streams)
channels[conn.URL.Path] = ch
} else {
ch = nil