mirror of
https://github.com/openziti/ziti.git
synced 2026-10-15 08:31:50 +00:00
Remove unused api session fields
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user