make getPathString functional

pull/1085/head
Ryan Tharp 5 years ago
parent 06e1a0eec3
commit e38dff5448

@ -520,13 +520,8 @@ const lokiFetch = async (url, options = {}, targetNode = null) => {
fetchOptions.body fetchOptions.body
); );
const getPathString = pathObjArr => { const getPathString = pathObjArr =>
const pathArr = []; pathObjArr.map(node => `${node.ip}:${node.port}`).join(', ');
pathObjArr.forEach(node => {
pathArr.push(`${node.ip}:${node.port}`);
});
return pathArr.join(', ');
};
if (result === BAD_PATH) { if (result === BAD_PATH) {
log.error( log.error(

Loading…
Cancel
Save