From a9555e84392d6c4bab93561ff702e4e35a9a6fc6 Mon Sep 17 00:00:00 2001 From: Mikunj Date: Fri, 27 Mar 2020 16:00:28 +1100 Subject: [PATCH] Linting --- js/modules/loki_rpc.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/js/modules/loki_rpc.js b/js/modules/loki_rpc.js index 14d01f8aa..78255f506 100644 --- a/js/modules/loki_rpc.js +++ b/js/modules/loki_rpc.js @@ -3,13 +3,11 @@ const nodeFetch = require('node-fetch'); const https = require('https'); -const { parse } = require('url'); const snodeHttpsAgent = new https.Agent({ rejectUnauthorized: false, }); -const LOKI_EPHEMKEY_HEADER = 'X-Loki-EphemKey'; const endpointBase = '/storage_rpc/v1'; // Request index for debugging @@ -410,8 +408,6 @@ const lokiFetch = async (url, options = {}, targetNode = null) => { const timeout = options.timeout || 10000; const method = options.method || 'GET'; - const address = parse(url).hostname; - const fetchOptions = { ...options, timeout,