mirror of
https://github.com/gofiber/storage.git
synced 2025-10-05 16:48:25 +08:00
Fix path to rueidis dir. Format code
This commit is contained in:
4
.github/workflows/gosec.yml
vendored
4
.github/workflows/gosec.yml
vendored
@@ -112,7 +112,7 @@ jobs:
|
|||||||
working-directory: ./pebble
|
working-directory: ./pebble
|
||||||
run: gosec ./...
|
run: gosec ./...
|
||||||
# -----
|
# -----
|
||||||
- name: Run Gosec (ruedis)
|
- name: Run Gosec (rueidis)
|
||||||
working-directory: ./ruedis
|
working-directory: ./rueidis
|
||||||
run: gosec ./...
|
run: gosec ./...
|
||||||
# -----
|
# -----
|
||||||
|
@@ -42,7 +42,6 @@ func New(config ...Config) *Storage {
|
|||||||
DisableCache: cfg.DisableCache,
|
DisableCache: cfg.DisableCache,
|
||||||
AlwaysPipelining: cfg.AlwaysPipelining,
|
AlwaysPipelining: cfg.AlwaysPipelining,
|
||||||
})
|
})
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
@@ -64,9 +64,7 @@ func Test_Rueidis_Set_Expiration(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Test_Rueidis_Get_Expired(t *testing.T) {
|
func Test_Rueidis_Get_Expired(t *testing.T) {
|
||||||
var (
|
key := "john"
|
||||||
key = "john"
|
|
||||||
)
|
|
||||||
|
|
||||||
result, err := testStore.Get(key)
|
result, err := testStore.Get(key)
|
||||||
utils.AssertEqual(t, nil, err)
|
utils.AssertEqual(t, nil, err)
|
||||||
@@ -97,9 +95,7 @@ func Test_Rueidis_Delete(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func Test_Rueidis_Reset(t *testing.T) {
|
func Test_Rueidis_Reset(t *testing.T) {
|
||||||
var (
|
val := []byte("doe")
|
||||||
val = []byte("doe")
|
|
||||||
)
|
|
||||||
|
|
||||||
err := testStore.Set("john1", val, 0)
|
err := testStore.Set("john1", val, 0)
|
||||||
utils.AssertEqual(t, nil, err)
|
utils.AssertEqual(t, nil, err)
|
||||||
|
Reference in New Issue
Block a user