-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: reduced usage of singleton to support parallel calls of fns
- Loading branch information
Showing
10 changed files
with
222 additions
and
372 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
packages/middleware/__tests__/integration/bootstrap/api/index.ts
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
11 changes: 11 additions & 0 deletions
11
packages/middleware/__tests__/integration/bootstrap/api/successParalell/index.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { getLogger } from "../../../../../src"; | ||
|
||
export const successParalell = (context) => { | ||
const logger = getLogger(context); | ||
logger.info("successParalell"); | ||
return Promise.resolve({ | ||
status: 200, | ||
message: "ok", | ||
error: false, | ||
}); | ||
}; |
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
Oops, something went wrong.