Fix lint and format code in adapter dir

This commit is contained in:
loyalsoldier
2021-06-05 11:37:02 +08:00
parent ca328208cc
commit 3572ac96a4
18 changed files with 24 additions and 90 deletions

View File

@@ -72,5 +72,4 @@ func TestRedisSentinel(t *testing.T) {
assert.Nil(t, password)
sess.SessionRelease(w)
}

View File

@@ -22,14 +22,14 @@ import (
"time"
)
const sid = "Session_id"
const sidNew = "Session_id_new"
const sessionPath = "./_session_runtime"
var (
mutex sync.Mutex
const (
sid = "Session_id"
sidNew = "Session_id_new"
sessionPath = "./_session_runtime"
)
var mutex sync.Mutex
func TestFileProviderSessionExist(t *testing.T) {
mutex.Lock()
defer mutex.Unlock()