Fixe two other missed references to NewMessageBus from 22efa3a

This commit is contained in:
James Mills 2018-05-08 01:58:37 -07:00
parent d180ac710d
commit c39cfce477
No known key found for this signature in database
GPG Key ID: AC4C014F1440EBD6
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ func main() {
DefaultTTL: ttl,
WithMetrics: true,
}
mb := msgbus.NewMessageBus(&opts)
mb := msgbus.New(&opts)
http.Handle("/", mb)
http.Handle("/metrics", mb.Metrics().Handler())

View File

@ -7,7 +7,7 @@ import (
)
func main() {
m := msgbus.NewMessageBus(nil)
m := msgbus.New(nil)
t := m.NewTopic("foo")
m.Put(m.NewMessage(t, []byte("Hello World!")))