Skip to content

Commit

Permalink
fix(pool): number of BPNs issued on request
Browse files Browse the repository at this point in the history
- fixes the BPN issuers behaviour of creating and returning always one too many BPNs
  • Loading branch information
nicoprow committed Oct 20, 2023
1 parent 7acbcaa commit 485e6c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class BpnIssuingService(
val counterEntry = getOrCreateCounter(bpnCounterKey)
val startCounter = counterEntry.value.toLongOrNull() ?: throw BpnInvalidCounterValueException(counterEntry.value)

val createdBpns = (0..count)
val createdBpns = (0 until count)
.map {
createBpn(startCounter + it, bpnChar)
}
Expand Down

0 comments on commit 485e6c7

Please sign in to comment.