From 0b4f68390d8d8072a6cb38c814bedc5afc125687 Mon Sep 17 00:00:00 2001 From: allencloud Date: Tue, 8 Nov 2016 18:18:55 +0800 Subject: [PATCH] remove unused mConfig Signed-off-by: allencloud --- libnetwork/networkdb/cluster.go | 1 - libnetwork/networkdb/networkdb.go | 5 ----- 2 files changed, 6 deletions(-) diff --git a/libnetwork/networkdb/cluster.go b/libnetwork/networkdb/cluster.go index 1ba1b14b0d..5fc6a988a8 100644 --- a/libnetwork/networkdb/cluster.go +++ b/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 diff --git a/libnetwork/networkdb/networkdb.go b/libnetwork/networkdb/networkdb.go index 835853bb8b..2518030e30 100644 --- a/libnetwork/networkdb/networkdb.go +++ b/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