ing
This commit is contained in:
parent
802fb179dc
commit
423ec815a2
|
@ -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))
|
||||
}
|
||||
|
|
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user