This commit is contained in:
chowyu08
2017-09-07 22:31:50 +08:00
parent 8c98346546
commit 7073e9b4ba
2 changed files with 23 additions and 15 deletions

View File

@@ -26,7 +26,7 @@ type Broker struct {
remotes sync.Map
sl *Sublist
rl *RetainList
queues map[string]Queue
queues map[string]*Queue
}
type Queue struct {
count int
@@ -39,7 +39,7 @@ func NewBroker(config *Config) (*Broker, error) {
config: config,
sl: NewSublist(),
rl: NewRetainList(),
queues: make(map[string]Queue),
queues: make(map[string]*Queue),
}
if b.config.TlsPort != "" {
tlsconfig, err := NewTLSConfig(b.config.TlsInfo)