fix: initialize broker and subscribers

This commit is contained in:
武新飞
2018-12-19 17:53:34 +08:00
committed by Vasiliy Tolstov
parent 921f832670
commit 7968395d51
2 changed files with 6 additions and 0 deletions

View File

@@ -238,6 +238,7 @@ func newServer(opts ...server.Option) server.Server {
return &httpServer{
opts: newOptions(opts...),
exit: make(chan chan error),
subscribers: make(map[*httpSubscriber][]broker.Subscriber),
}
}