feat: add session GC call
This commit is contained in:
parent
7c77f4f84b
commit
7b6f4f39c2
@ -112,6 +112,7 @@ func init() {
|
|||||||
var err error
|
var err error
|
||||||
|
|
||||||
sess, err = session.NewManager("memory", "ptpp", 3600)
|
sess, err = session.NewManager("memory", "ptpp", 3600)
|
||||||
|
go sess.GC()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(werror.Wrap(err, "Error creating session manager"))
|
panic(werror.Wrap(err, "Error creating session manager"))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user