clean
This commit is contained in:
parent
994871426d
commit
6e35a53b56
4 changed files with 2 additions and 7 deletions
2
go.mod
2
go.mod
|
@ -2,6 +2,4 @@ module git.mtux.eu/darkgopher/session
|
||||||
|
|
||||||
go 1.23.4
|
go 1.23.4
|
||||||
|
|
||||||
require golang.org/x/net v0.40.0
|
|
||||||
|
|
||||||
require github.com/djherbis/atime v1.1.0
|
require github.com/djherbis/atime v1.1.0
|
||||||
|
|
2
go.sum
2
go.sum
|
@ -1,4 +1,2 @@
|
||||||
github.com/djherbis/atime v1.1.0 h1:rgwVbP/5by8BvvjBNrbh64Qz33idKT3pSnMSJsxhi0g=
|
github.com/djherbis/atime v1.1.0 h1:rgwVbP/5by8BvvjBNrbh64Qz33idKT3pSnMSJsxhi0g=
|
||||||
github.com/djherbis/atime v1.1.0/go.mod h1:28OF6Y8s3NQWwacXc5eZTsEsiMzp7LF8MbXE+XJPdBE=
|
github.com/djherbis/atime v1.1.0/go.mod h1:28OF6Y8s3NQWwacXc5eZTsEsiMzp7LF8MbXE+XJPdBE=
|
||||||
golang.org/x/net v0.40.0 h1:79Xs7wF06Gbdcg4kdCCIQArK11Z1hr5POQ6+fIYHNuY=
|
|
||||||
golang.org/x/net v0.40.0/go.mod h1:y0hY0exeL2Pku80/zKK7tpntoX23cqL3Oa6njdgRtds=
|
|
||||||
|
|
|
@ -20,8 +20,8 @@ func init() {
|
||||||
// ProviderMemory implement memory session provider
|
// ProviderMemory implement memory session provider
|
||||||
type ProviderMemory struct {
|
type ProviderMemory struct {
|
||||||
lock sync.Mutex
|
lock sync.Mutex
|
||||||
sessions map[string]*list.Element //save to RAM
|
|
||||||
li *list.List //for GC
|
li *list.List //for GC
|
||||||
|
sessions map[string]*list.Element //save to RAM
|
||||||
}
|
}
|
||||||
|
|
||||||
func (pder *ProviderMemory) updateAtime(sid string) {
|
func (pder *ProviderMemory) updateAtime(sid string) {
|
||||||
|
|
|
@ -19,7 +19,6 @@ import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.mtux.eu/darkgopher/session"
|
"git.mtux.eu/darkgopher/session"
|
||||||
"golang.org/x/net/publicsuffix"
|
|
||||||
|
|
||||||
//all impls imports here ...
|
//all impls imports here ...
|
||||||
_ "git.mtux.eu/darkgopher/session/storage/files"
|
_ "git.mtux.eu/darkgopher/session/storage/files"
|
||||||
|
@ -294,7 +293,7 @@ func TestRunAll(t *testing.T) {
|
||||||
//all impls. subtests
|
//all impls. subtests
|
||||||
for _, pn := range session.ProviderNames() {
|
for _, pn := range session.ProviderNames() {
|
||||||
var err error
|
var err error
|
||||||
jar, _ := cookiejar.New(&cookiejar.Options{PublicSuffixList: publicsuffix.List})
|
jar, _ := cookiejar.New(nil)
|
||||||
testclient.Jar = jar
|
testclient.Jar = jar
|
||||||
|
|
||||||
adopt := addopts[pn]
|
adopt := addopts[pn]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue