mirror of https://github.com/go-redis/redis.git
Merge 9f7f07f8b9
into e63669e170
This commit is contained in:
commit
a116e2e4c1
|
@ -1787,7 +1787,7 @@ type XPendingExt struct {
|
||||||
ID string
|
ID string
|
||||||
Consumer string
|
Consumer string
|
||||||
Idle time.Duration
|
Idle time.Duration
|
||||||
RetryCount int64
|
DeliveredTimes int64
|
||||||
}
|
}
|
||||||
|
|
||||||
type XPendingExtCmd struct {
|
type XPendingExtCmd struct {
|
||||||
|
@ -1848,7 +1848,7 @@ func (cmd *XPendingExtCmd) readReply(rd *proto.Reader) error {
|
||||||
}
|
}
|
||||||
cmd.val[i].Idle = time.Duration(idle) * time.Millisecond
|
cmd.val[i].Idle = time.Duration(idle) * time.Millisecond
|
||||||
|
|
||||||
if cmd.val[i].RetryCount, err = rd.ReadInt(); err != nil && err != Nil {
|
if cmd.val[i].DeliveredTimes, err = rd.ReadInt(); err != nil && err != Nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6063,9 +6063,9 @@ var _ = Describe("Commands", func() {
|
||||||
infoExt[i].Idle = 0
|
infoExt[i].Idle = 0
|
||||||
}
|
}
|
||||||
Expect(infoExt).To(Equal([]redis.XPendingExt{
|
Expect(infoExt).To(Equal([]redis.XPendingExt{
|
||||||
{ID: "1-0", Consumer: "consumer", Idle: 0, RetryCount: 1},
|
{ID: "1-0", Consumer: "consumer", Idle: 0, DeliveredTimes: 1},
|
||||||
{ID: "2-0", Consumer: "consumer", Idle: 0, RetryCount: 1},
|
{ID: "2-0", Consumer: "consumer", Idle: 0, DeliveredTimes: 1},
|
||||||
{ID: "3-0", Consumer: "consumer", Idle: 0, RetryCount: 1},
|
{ID: "3-0", Consumer: "consumer", Idle: 0, DeliveredTimes: 1},
|
||||||
}))
|
}))
|
||||||
|
|
||||||
args.Idle = 72 * time.Hour
|
args.Idle = 72 * time.Hour
|
||||||
|
|
Loading…
Reference in New Issue