diff --git a/servlet/auth-servlet.go b/servlet/auth-servlet.go index 03d72b5..ce7e3fb 100644 --- a/servlet/auth-servlet.go +++ b/servlet/auth-servlet.go @@ -177,15 +177,15 @@ LOOP: } } -func (s *AuthServlets) getAuthSessions(targetIDs []string) []*ogrs.Session { +func (s *AuthServlets) getAuthSessions(sessionIDs []string) []*ogrs.Session { var sessions []*ogrs.Session - if nil == targetIDs || 0 == len(targetIDs) { + if nil == sessionIDs || 0 == len(sessionIDs) { return sessions } - for _, targetID := range targetIDs { - session, ok := s.sessions.Load(targetID) + for _, sessionID := range sessionIDs { + session, ok := s.sessions.Load(sessionID) if ok { sessions = append(sessions, session.(*ogrs.Session)) } diff --git a/servlet/probe-servlet.go b/servlet/probe-servlet.go index 02bc55e..2cc8d88 100644 --- a/servlet/probe-servlet.go +++ b/servlet/probe-servlet.go @@ -155,15 +155,15 @@ LOOP: } } -func (s *ProbeServlets) getProbeSessions(targetIDs []string) []*ogrs.Session { +func (s *ProbeServlets) getProbeSessions(sessionIDs []string) []*ogrs.Session { var sessions []*ogrs.Session - if nil == targetIDs || 0 == len(targetIDs) { + if nil == sessionIDs || 0 == len(sessionIDs) { return sessions } - for _, targetID := range targetIDs { - session, ok := s.sessions.Load(targetID) + for _, sessionID := range sessionIDs { + session, ok := s.sessions.Load(sessionID) if ok { sessions = append(sessions, session.(*ogrs.Session)) }