ソースを参照

remove unused mConfig

Signed-off-by: allencloud <allen.sun@daocloud.io>
allencloud 8 年 前
コミット
0b4f68390d
2 ファイル変更0 行追加6 行削除
  1. 0 1
      libnetwork/networkdb/cluster.go
  2. 0 5
      libnetwork/networkdb/networkdb.go

+ 0 - 1
libnetwork/networkdb/cluster.go

@@ -139,7 +139,6 @@ func (nDB *NetworkDB) clusterInit() error {
 
 
 	nDB.stopCh = make(chan struct{})
 	nDB.stopCh = make(chan struct{})
 	nDB.memberlist = mlist
 	nDB.memberlist = mlist
-	nDB.mConfig = config
 
 
 	for _, trigger := range []struct {
 	for _, trigger := range []struct {
 		interval time.Duration
 		interval time.Duration

+ 0 - 5
libnetwork/networkdb/networkdb.go

@@ -29,10 +29,6 @@ type NetworkDB struct {
 	// NetworkDB configuration.
 	// NetworkDB configuration.
 	config *Config
 	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
 	// All the tree index (byTable, byNetwork) that we maintain
 	// the db.
 	// the db.
 	indexes map[int]*radix.Tree
 	indexes map[int]*radix.Tree
@@ -57,7 +53,6 @@ type NetworkDB struct {
 
 
 	// A map of nodes which are participating in a given
 	// A map of nodes which are participating in a given
 	// network. The key is a network ID.
 	// network. The key is a network ID.
-
 	networkNodes map[string][]string
 	networkNodes map[string][]string
 
 
 	// A table of ack channels for every node from which we are
 	// A table of ack channels for every node from which we are