Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
孙飞 authored and 孙飞 committed Apr 3, 2019
1 parent 37f457b commit 291dfa9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions broker/broker.go
Expand Up @@ -2,6 +2,7 @@ package broker

import (
"context"
"fmt"
"net"
"sync"
"time"
Expand Down Expand Up @@ -49,10 +50,9 @@ func New(path string) *Broker {

wg: &sync.WaitGroup{},
clients: make(map[uint64]*client),

// init gid
gid: config.Conf.Broker.ID * 1e9,
}

fmt.Println(b.gid)
// init base config
config.Init(path)

Expand All @@ -72,6 +72,7 @@ func New(path string) *Broker {
}

func (b *Broker) Start() {
b.gid = config.Conf.Broker.ID * 1e11
b.running = true

b.cluster = cluster.New()
Expand Down

0 comments on commit 291dfa9

Please sign in to comment.