Read() -> Load()
This commit is contained in:
parent
95984bb37c
commit
ffd730b057
3 changed files with 14 additions and 14 deletions
|
@ -58,7 +58,7 @@ func (pder *ProviderMemory) Exists(sid string) (ex bool) {
|
|||
}
|
||||
|
||||
// read return existing unexpired session or create new
|
||||
func (pder *ProviderMemory) Read(sid string) (ses session.Session, err error) {
|
||||
func (pder *ProviderMemory) Load(sid string) (ses session.Session, err error) {
|
||||
pder.lock.Lock()
|
||||
defer pder.lock.Unlock()
|
||||
if ssel, ok := pder.sessions[sid]; ok {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue