refactor: replace `until` loop with `map`
refactor: replace `until` loop with `map`

lamassu/lamassu-server,naconner/lamassu-server,lamassu/lamassu-server,naconner/lamassu-server,naconner/lamassu-server,lamassu/lamassu-server