This commit is contained in:
crusader 2018-04-13 20:15:07 +09:00
parent 802fb179dc
commit 423ec815a2
2 changed files with 8 additions and 8 deletions

View File

@ -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 var sessions []*ogrs.Session
if nil == targetIDs || 0 == len(targetIDs) { if nil == sessionIDs || 0 == len(sessionIDs) {
return sessions return sessions
} }
for _, targetID := range targetIDs { for _, sessionID := range sessionIDs {
session, ok := s.sessions.Load(targetID) session, ok := s.sessions.Load(sessionID)
if ok { if ok {
sessions = append(sessions, session.(*ogrs.Session)) sessions = append(sessions, session.(*ogrs.Session))
} }

View File

@ -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 var sessions []*ogrs.Session
if nil == targetIDs || 0 == len(targetIDs) { if nil == sessionIDs || 0 == len(sessionIDs) {
return sessions return sessions
} }
for _, targetID := range targetIDs { for _, sessionID := range sessionIDs {
session, ok := s.sessions.Load(targetID) session, ok := s.sessions.Load(sessionID)
if ok { if ok {
sessions = append(sessions, session.(*ogrs.Session)) sessions = append(sessions, session.(*ogrs.Session))
} }