This commit is contained in:
zhouyuyan
2017-09-08 10:44:01 +08:00
parent 7f45bd6bc9
commit 258912b33a
2 changed files with 51 additions and 24 deletions

View File

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