Jelajahi Sumber

Merge pull request #1543 from allencloud/remove-unused-mConfig

remove unused mConfig
Alessandro Boch 8 tahun lalu
induk
melakukan
4797d6a872
2 mengubah file dengan 0 tambahan dan 6 penghapusan
  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.memberlist = mlist
-	nDB.mConfig = config
 
 	for _, trigger := range []struct {
 		interval time.Duration

+ 0 - 5
libnetwork/networkdb/networkdb.go

@@ -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
@@ -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