mirror of
https://github.com/gofiber/storage.git
synced 2025-10-05 08:37:10 +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
|
||||
run: gosec ./...
|
||||
# -----
|
||||
- name: Run Gosec (ruedis)
|
||||
working-directory: ./ruedis
|
||||
- name: Run Gosec (rueidis)
|
||||
working-directory: ./rueidis
|
||||
run: gosec ./...
|
||||
# -----
|
||||
|
@@ -42,7 +42,6 @@ func New(config ...Config) *Storage {
|
||||
DisableCache: cfg.DisableCache,
|
||||
AlwaysPipelining: cfg.AlwaysPipelining,
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
@@ -64,9 +64,7 @@ func Test_Rueidis_Set_Expiration(t *testing.T) {
|
||||
}
|
||||
|
||||
func Test_Rueidis_Get_Expired(t *testing.T) {
|
||||
var (
|
||||
key = "john"
|
||||
)
|
||||
key := "john"
|
||||
|
||||
result, err := testStore.Get(key)
|
||||
utils.AssertEqual(t, nil, err)
|
||||
@@ -97,9 +95,7 @@ func Test_Rueidis_Delete(t *testing.T) {
|
||||
}
|
||||
|
||||
func Test_Rueidis_Reset(t *testing.T) {
|
||||
var (
|
||||
val = []byte("doe")
|
||||
)
|
||||
val := []byte("doe")
|
||||
|
||||
err := testStore.Set("john1", val, 0)
|
||||
utils.AssertEqual(t, nil, err)
|
||||
|
Reference in New Issue
Block a user