Skip to content

Commit

Permalink
remove unused mConfig
Browse files Browse the repository at this point in the history
Signed-off-by: allencloud <allen.sun@daocloud.io>
  • Loading branch information
allencloud committed Nov 8, 2016
1 parent 11cf223 commit 5794d38
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion networkdb/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ func (nDB *NetworkDB) clusterInit() error {

nDB.stopCh = make(chan struct{})
nDB.memberlist = mlist
nDB.mConfig = config

for _, trigger := range []struct {
interval time.Duration
Expand Down
5 changes: 0 additions & 5 deletions networkdb/networkdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ type NetworkDB struct {
// NetworkDB configuration.
config *Config

// local copy of memberlist config that we use to driver
// network scoped gossip and bulk sync.
mConfig *memberlist.Config

// All the tree index (byTable, byNetwork) that we maintain
// the db.
indexes map[int]*radix.Tree
Expand All @@ -57,7 +53,6 @@ type NetworkDB struct {

// A map of nodes which are participating in a given
// network. The key is a network ID.

networkNodes map[string][]string

// A table of ack channels for every node from which we are
Expand Down

0 comments on commit 5794d38

Please sign in to comment.