Remove unused api session fields

This commit is contained in:
Paul Lorenz
2021-08-03 16:02:36 -04:00
parent 8a44f37344
commit 5baee1a3f2
-4
View File
@@ -53,9 +53,7 @@ type fabricProvider struct {
tunneler *tunneler
apiSessionLock sync.Mutex
apiSessionId string
apiSessionToken string
refreshInterval time.Duration
currentIdentity *edge.CurrentIdentity
dialSessions cmap.ConcurrentMap
@@ -84,9 +82,7 @@ func (self *fabricProvider) updateApiSession(resp *edge_ctrl_pb.CreateApiSession
self.tunneler.stateManager.RemoveConnectedApiSession(self.apiSessionToken)
self.apiSessionId = resp.SessionId
self.apiSessionToken = resp.Token
self.refreshInterval = time.Duration(resp.RefreshIntervalSeconds) * time.Second
self.currentIdentity = &edge.CurrentIdentity{
Id: resp.IdentityId,
Name: resp.IdentityName,