Commit 73b1d269 authored by Suhaimi Amir's avatar Suhaimi Amir

fix tracer

parent d711bf32
Pipeline #1626 passed with stage
in 21 seconds
......@@ -5,7 +5,7 @@ const tracer = require('tracer').init('dx-config-plugin');
let configSubscriber = null;
exports.get = async (name, parentSpan = undefined) => {
exports.get = async (name, parentSpan = false) => {
// setTimeout(() => {
// if (typeof global.config[name] === 'undefined') {
// logger.info(`Timed out while retrieving config "${name}", exiting...`);
......@@ -46,7 +46,6 @@ exports.get = async (name, parentSpan = undefined) => {
message: err.message,
});
span.finish();
span.finish();
return Promise.reject(err);
});
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment