diff options
Diffstat (limited to 'modules/session/virtual.go')
-rw-r--r-- | modules/session/virtual.go | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/modules/session/virtual.go b/modules/session/virtual.go index b8ddd2f71b..027960a289 100644 --- a/modules/session/virtual.go +++ b/modules/session/virtual.go @@ -10,13 +10,13 @@ import ( "fmt" "sync" - "github.com/go-macaron/session" - couchbase "github.com/go-macaron/session/couchbase" - memcache "github.com/go-macaron/session/memcache" - mysql "github.com/go-macaron/session/mysql" - nodb "github.com/go-macaron/session/nodb" - postgres "github.com/go-macaron/session/postgres" - redis "github.com/go-macaron/session/redis" + "gitea.com/macaron/session" + couchbase "gitea.com/macaron/session/couchbase" + memcache "gitea.com/macaron/session/memcache" + mysql "gitea.com/macaron/session/mysql" + nodb "gitea.com/macaron/session/nodb" + postgres "gitea.com/macaron/session/postgres" + redis "gitea.com/macaron/session/redis" ) // VirtualSessionProvider represents a shadowed session provider implementation. @@ -75,11 +75,11 @@ func (o *VirtualSessionProvider) Exist(sid string) bool { return true } -// Destory deletes a session by session ID. -func (o *VirtualSessionProvider) Destory(sid string) error { +// Destroy deletes a session by session ID. +func (o *VirtualSessionProvider) Destroy(sid string) error { o.lock.Lock() defer o.lock.Unlock() - return o.provider.Destory(sid) + return o.provider.Destroy(sid) } // Regenerate regenerates a session store from old session ID to new one. |