Skip to content

Commit a163776

Browse files
committed
paymentsdb: add new internal error
1 parent 0c9ed7f commit a163776

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

payments/db/errors.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,8 @@ var (
136136
// NOTE: Only used for the kv backend.
137137
ErrNoSequenceNrIndex = errors.New("payment sequence number index " +
138138
"does not exist")
139+
140+
// errMaxPaymentsReached is used internally to signal that the maximum
141+
// number of payments has been reached during a paginated query.
142+
errMaxPaymentsReached = errors.New("max payments reached")
139143
)

0 commit comments

Comments
 (0)