mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 01:07:18 +03:00
ledger-api-bench-tool: Allocate observers indexed from 0 until the total number (#11700)
CHANGELOG_BEGIN CHANGELOG_END
This commit is contained in:
parent
41d2d950f4
commit
612a838987
@ -71,7 +71,7 @@ case class CommandSubmitter(services: LedgerApiServices) {
|
||||
private def allocateParties(number: Int, name: Int => String)(implicit
|
||||
ec: ExecutionContext
|
||||
): Future[List[Primitive.Party]] =
|
||||
(1 to number).foldLeft(Future.successful(List.empty[Primitive.Party])) { (allocated, i) =>
|
||||
(0 until number).foldLeft(Future.successful(List.empty[Primitive.Party])) { (allocated, i) =>
|
||||
allocated.flatMap { parties =>
|
||||
services.partyManagementService.allocateParty(name(i)).map(party => parties :+ party)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user