-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Release semaphore after mapping.csv (DEV-3435) (#198)
1. `getBulkIngestMappingCsv` wasn't releasing the semaphore, because it wasn't using `withSemaphoreFork`, because it required the result, so it was rewritten to `withSemaphore` and usable in both forking and non-forking cases, so the release code is now shared and called in all cases. 2. Testcase for releasing locks has been added (test indeed fails with timeout pre-fix). 3. `.unsome.flatMap { case None => ZIO.fail(e); case Some => ZIO.succeed(a) }` should be equivalent to `.mapBoth(e, a)`
- Loading branch information
Showing
3 changed files
with
62 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters