From 813b64ffb179e7bd5b9c5c02adc5d286e5bd8f5e Mon Sep 17 00:00:00 2001 From: brad-defined <77982333+brad-defined@users.noreply.github.com> Date: Tue, 15 Nov 2022 21:33:09 -0500 Subject: [PATCH] Remove unused variables from connection manager (#677) --- connection_manager.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/connection_manager.go b/connection_manager.go index 79471b8..a80a6c3 100644 --- a/connection_manager.go +++ b/connection_manager.go @@ -17,10 +17,8 @@ type connectionManager struct { hostMap *HostMap in map[iputil.VpnIp]struct{} inLock *sync.RWMutex - inCount int out map[iputil.VpnIp]struct{} outLock *sync.RWMutex - outCount int TrafficTimer *SystemTimerWheel intf *Interface @@ -40,10 +38,8 @@ func newConnectionManager(ctx context.Context, l *logrus.Logger, intf *Interface hostMap: intf.hostMap, in: make(map[iputil.VpnIp]struct{}), inLock: &sync.RWMutex{}, - inCount: 0, out: make(map[iputil.VpnIp]struct{}), outLock: &sync.RWMutex{}, - outCount: 0, TrafficTimer: NewSystemTimerWheel(time.Millisecond*500, time.Second*60), intf: intf, pendingDeletion: make(map[iputil.VpnIp]int),