mirror of
https://github.com/redis/go-redis.git
synced 2025-07-31 05:04:23 +03:00
Remove strconv
This commit is contained in:
@ -4,7 +4,6 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
"io"
|
"io"
|
||||||
"strconv"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/go-redis/redis/v8/internal"
|
"github.com/go-redis/redis/v8/internal"
|
||||||
@ -2308,8 +2307,7 @@ func (c cmdable) SlaveOf(ctx context.Context, host, port string) *StatusCmd {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c cmdable) SlowLogGet(ctx context.Context, num int64) *SlowLogCmd {
|
func (c cmdable) SlowLogGet(ctx context.Context, num int64) *SlowLogCmd {
|
||||||
n := strconv.FormatInt(num, 10)
|
cmd := NewSlowLogCmd(context.Background(), "slowlog", "get", num)
|
||||||
cmd := NewSlowLogCmd(context.Background(), "slowlog", "get", n)
|
|
||||||
_ = c(ctx, cmd)
|
_ = c(ctx, cmd)
|
||||||
return cmd
|
return cmd
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user