diff --git a/js/modules/loki_message_api.js b/js/modules/loki_message_api.js index c4953058a..4bede184c 100644 --- a/js/modules/loki_message_api.js +++ b/js/modules/loki_message_api.js @@ -3,7 +3,7 @@ /* global log, dcodeIO, window, callWorker, lokiP2pAPI, lokiSnodeAPI, textsecure */ const _ = require('lodash'); -const { rpc } = require('./loki_fetch'); +const { rpc } = require('./loki_rpc'); // Will be raised (to 3?) when we get more nodes const MINIMUM_SUCCESSFUL_REQUESTS = 2; diff --git a/js/modules/loki_fetch.js b/js/modules/loki_rpc.js similarity index 97% rename from js/modules/loki_fetch.js rename to js/modules/loki_rpc.js index 353992631..23f9a01d5 100644 --- a/js/modules/loki_fetch.js +++ b/js/modules/loki_rpc.js @@ -39,7 +39,7 @@ const fetch = async (url, options = {}) => { }); if (!response.ok) { - throw new textsecure.HTTPError('Loki_fetch error', response); + throw new textsecure.HTTPError('Loki_rpc error', response); } let result; diff --git a/js/modules/loki_snode_api.js b/js/modules/loki_snode_api.js index ccd023121..c89caa2a6 100644 --- a/js/modules/loki_snode_api.js +++ b/js/modules/loki_snode_api.js @@ -4,7 +4,7 @@ const is = require('@sindresorhus/is'); const dns = require('dns'); const process = require('process'); -const { rpc } = require('./loki_fetch'); +const { rpc } = require('./loki_rpc'); // Will be raised (to 3?) when we get more nodes const MINIMUM_SWARM_NODES = 1;