|
|
|
@ -17,7 +17,7 @@ type AuthenticationMap struct {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Returns empty string when no request by that id is present
|
|
|
|
|
func (q *AuthenticationMap) getRequestByID(ID string) *AuthRequest {
|
|
|
|
|
func (q *AuthenticationMap) GetRequestByID(ID string) *AuthRequest {
|
|
|
|
|
q.requestMapMutex.RLock()
|
|
|
|
|
|
|
|
|
|
req, ok := q.requestMap[ID]
|
|
|
|
@ -57,6 +57,7 @@ func (q *AuthenticationMap) QueueRequest(r *AuthRequest) error {
|
|
|
|
|
|
|
|
|
|
func (q *AuthenticationMap) Init() {
|
|
|
|
|
q.requestMap = make(map[string]*AuthRequest)
|
|
|
|
|
q.requestMapMutex = &sync.RWMutex{}
|
|
|
|
|
q.startRequestMapCleaner()
|
|
|
|
|
}
|
|
|
|
|
|