Skip to content

Commit 265e978

Browse files
make getBusApiClient regular function
1 parent c5378d5 commit 265e978

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/common/helper.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -822,16 +822,14 @@ function ensureNoDuplicateOrNullElements (arr, name) {
822822
* Get Bus API Client
823823
* @return {Object} Bus API Client Instance
824824
*/
825-
async function getBusApiClient () {
826-
// const span = await logger.startSpan('helper.getBusApiClient')
825+
function getBusApiClient () {
827826
// if there is no bus API client instance, then create a new instance
828827
if (!busApiClient) {
829828
busApiClient = busApi(_.pick(config,
830829
['AUTH0_URL', 'AUTH0_AUDIENCE', 'TOKEN_CACHE_TIME',
831830
'AUTH0_CLIENT_ID', 'AUTH0_CLIENT_SECRET', 'BUSAPI_URL',
832831
'KAFKA_ERROR_TOPIC', 'AUTH0_PROXY_SERVER_URL']))
833832
}
834-
// await logger.endSpan(span)
835833
return busApiClient
836834
}
837835

0 commit comments

Comments
 (0)