1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-04 18:57:03 +00:00

organise sessions examples

Former-commit-id: 682472d2cf4ebfc740687522fe5eef77b5bb1a72
This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-05-07 07:34:17 +03:00
parent b4365cee8d
commit cd62ba3712
11 changed files with 190 additions and 411 deletions

View File

@@ -30,6 +30,10 @@ func newProvider() *provider {
// RegisterDatabase sets a session database.
func (p *provider) RegisterDatabase(db Database) {
if db == nil {
return
}
p.mu.Lock() // for any case
p.db = db
p.mu.Unlock()