Skip to content

Commit 35aa313

Browse files
Merge pull request #12 from ibuildthecloud/master
Fix issue in which More is never set
2 parents 4e04255 + e4469f1 commit 35aa313

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/server/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func (l *LimitedServer) list(ctx context.Context, r *etcdserverpb.RangeRequest)
4747
Kvs: kvs,
4848
}
4949

50-
if limit > 0 && resp.Count > limit {
50+
if limit > 0 && resp.Count > r.Limit {
5151
resp.More = true
5252
resp.Kvs = kvs[0 : limit-1]
5353
}

0 commit comments

Comments
 (0)