Skip to content

Commit

Permalink
update readme for broken links (zeromicro#432)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevwan authored Feb 3, 2021
1 parent 8b273a0 commit 30f5ab0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions core/stores/redis/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -487,28 +487,28 @@ func (s *Redis) Hmset(key string, fieldsAndValues map[string]string) error {
}, acceptable)
}

func (s *Redis) Hvals(key string) (val []string, err error) {
func (s *Redis) Hscan(key string, cursor uint64, match string, count int64) (keys []string, cur uint64, err error) {
err = s.brk.DoWithAcceptable(func() error {
conn, err := getRedis(s)
if err != nil {
return err
}

val, err = conn.HVals(key).Result()
keys, cur, err = conn.HScan(key, cursor, match, count).Result()
return err
}, acceptable)

return
}

func (s *Redis) Hscan(key string, cursor uint64, match string, count int64) (keys []string, cur uint64, err error) {
func (s *Redis) Hvals(key string) (val []string, err error) {
err = s.brk.DoWithAcceptable(func() error {
conn, err := getRedis(s)
if err != nil {
return err
}

keys, cur, err = conn.HScan(key, cursor, match, count).Result()
val, err = conn.HVals(key).Result()
return err
}, acceptable)

Expand Down
2 changes: 1 addition & 1 deletion readme-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# go-zero

[English](readme-en.md) | 简体中文
[English](readme.md) | 简体中文

[![Go](https://github.com/tal-tech/go-zero/workflows/Go/badge.svg?branch=master)](https://github.com/tal-tech/go-zero/actions)
[![Go Report Card](https://goreportcard.com/badge/github.com/tal-tech/go-zero)](https://goreportcard.com/report/github.com/tal-tech/go-zero)
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# go-zero

English | [简体中文](readme.md)
English | [简体中文](readme-cn.md)

[![Go](https://github.com/tal-tech/go-zero/workflows/Go/badge.svg?branch=master)](https://github.com/tal-tech/go-zero/actions)
[![codecov](https://codecov.io/gh/tal-tech/go-zero/branch/master/graph/badge.svg)](https://codecov.io/gh/tal-tech/go-zero)
Expand Down

0 comments on commit 30f5ab0

Please sign in to comment.