fixup opts

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2020-09-10 00:27:29 +03:00
parent a72ed0f651
commit 6372b7b3fa
4 changed files with 8 additions and 46 deletions

2
tcp.go
View File

@@ -380,7 +380,7 @@ func (s *tcpServer) serve(ln net.Listener, h Handler) {
func newServer(opts ...server.Option) server.Server {
return &tcpServer{
opts: newOptions(opts...),
opts: server.NewOptions(opts...),
exit: make(chan chan error),
subscribers: make(map[*tcpSubscriber][]broker.Subscriber),
}