Skip to content

Commit

Permalink
Update comment for Scan (#75)
Browse files Browse the repository at this point in the history
Signed-off-by: lucklove <gnu.crazier@gmail.com>
  • Loading branch information
lucklove authored Apr 12, 2021
1 parent 1be793c commit d811a08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rawkv/rawkv.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ func (c *Client) DeleteRange(ctx context.Context, startKey []byte, endKey []byte
// If endKey is empty, it means unbounded.
// If you want to exclude the startKey or include the endKey, append a '\0' to the key. For example, to scan
// (startKey, endKey], you can write:
// `Scan(append(startKey, '\0'), append(endKey, '\0'), limit)`.
// `Scan(ctx, append(startKey, '\x00'), append(endKey, '\x00'), limit)`.
func (c *Client) Scan(ctx context.Context, startKey, endKey []byte, limit int, options ...ScanOption) (keys [][]byte, values [][]byte, err error) {
start := time.Now()
defer func() { metrics.RawkvCmdHistogram.WithLabelValues("scan").Observe(time.Since(start).Seconds()) }()
Expand Down

0 comments on commit d811a08

Please sign in to comment.