linting fixes, go.mod fixes
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
0658d8ea0a
commit
7bf60f879d
5
redis.go
5
redis.go
@ -12,7 +12,7 @@ type rkv struct {
|
||||
}
|
||||
|
||||
func (r *rkv) Read(keys ...string) ([]*store.Record, error) {
|
||||
var records []*store.Record
|
||||
records := make([]*store.Record, 0, len(keys))
|
||||
|
||||
for _, key := range keys {
|
||||
val, err := r.Client.Get(key).Bytes()
|
||||
@ -69,7 +69,8 @@ func (r *rkv) List() ([]*store.Record, error) {
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
var vals []*store.Record
|
||||
|
||||
vals := make([]*store.Record, 0, len(keys))
|
||||
for _, k := range keys {
|
||||
i, err := r.Read(k)
|
||||
if err != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user