Skip to content

Commit 3145cf8

Browse files
committed
Rename TopkIncrBy method
1 parent 9f63caf commit 3145cf8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ func (client *Client) TopkInfo(key string) (map[string]string, error) {
206206
}
207207

208208
// Increase the score of an item in the data structure by increment.
209-
func (client *Client) TopkIncrby(key string, itemIncrements map[string]int64) ([]string, error) {
209+
func (client *Client) TopkIncrBy(key string, itemIncrements map[string]int64) ([]string, error) {
210210
conn := client.Pool.Get()
211211
defer conn.Close()
212212
args := redis.Args{key}

client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ func TestClient_TopkIncrby(t *testing.T) {
202202
assert.Nil(t, err)
203203
assert.NotNil(t, rets)
204204

205-
rets, err = client.TopkIncrby(key, map[string]int64{"foo": 3, "bar": 2, "42": 30})
205+
rets, err = client.TopkIncrBy(key, map[string]int64{"foo": 3, "bar": 2, "42": 30})
206206
assert.Nil(t, err)
207207
assert.Equal(t, 3, len(rets))
208208
assert.Equal(t, "", rets[2])

0 commit comments

Comments
 (0)