Merge pull request #2538 from tianon/challanges
Fix minor "Challanges" typo
This commit is contained in:
commit
23bef416bd
@ -45,13 +45,13 @@ type Manager interface {
|
|||||||
// to a backend.
|
// to a backend.
|
||||||
func NewSimpleManager() Manager {
|
func NewSimpleManager() Manager {
|
||||||
return &simpleManager{
|
return &simpleManager{
|
||||||
Challanges: make(map[string][]Challenge),
|
Challenges: make(map[string][]Challenge),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
type simpleManager struct {
|
type simpleManager struct {
|
||||||
sync.RWMutex
|
sync.RWMutex
|
||||||
Challanges map[string][]Challenge
|
Challenges map[string][]Challenge
|
||||||
}
|
}
|
||||||
|
|
||||||
func normalizeURL(endpoint *url.URL) {
|
func normalizeURL(endpoint *url.URL) {
|
||||||
@ -64,7 +64,7 @@ func (m *simpleManager) GetChallenges(endpoint url.URL) ([]Challenge, error) {
|
|||||||
|
|
||||||
m.RLock()
|
m.RLock()
|
||||||
defer m.RUnlock()
|
defer m.RUnlock()
|
||||||
challenges := m.Challanges[endpoint.String()]
|
challenges := m.Challenges[endpoint.String()]
|
||||||
return challenges, nil
|
return challenges, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -82,7 +82,7 @@ func (m *simpleManager) AddResponse(resp *http.Response) error {
|
|||||||
|
|
||||||
m.Lock()
|
m.Lock()
|
||||||
defer m.Unlock()
|
defer m.Unlock()
|
||||||
m.Challanges[urlCopy.String()] = challenges
|
m.Challenges[urlCopy.String()] = challenges
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user