Rename loki_fetch to loki_rpc

pull/258/head
Beaudan 6 years ago
parent b09f2970fc
commit 0f771d4db4

@ -3,7 +3,7 @@
/* global log, dcodeIO, window, callWorker, lokiP2pAPI, lokiSnodeAPI, textsecure */ /* global log, dcodeIO, window, callWorker, lokiP2pAPI, lokiSnodeAPI, textsecure */
const _ = require('lodash'); const _ = require('lodash');
const { rpc } = require('./loki_fetch'); const { rpc } = require('./loki_rpc');
// Will be raised (to 3?) when we get more nodes // Will be raised (to 3?) when we get more nodes
const MINIMUM_SUCCESSFUL_REQUESTS = 2; const MINIMUM_SUCCESSFUL_REQUESTS = 2;

@ -39,7 +39,7 @@ const fetch = async (url, options = {}) => {
}); });
if (!response.ok) { if (!response.ok) {
throw new textsecure.HTTPError('Loki_fetch error', response); throw new textsecure.HTTPError('Loki_rpc error', response);
} }
let result; let result;

@ -4,7 +4,7 @@
const is = require('@sindresorhus/is'); const is = require('@sindresorhus/is');
const dns = require('dns'); const dns = require('dns');
const process = require('process'); const process = require('process');
const { rpc } = require('./loki_fetch'); const { rpc } = require('./loki_rpc');
// Will be raised (to 3?) when we get more nodes // Will be raised (to 3?) when we get more nodes
const MINIMUM_SWARM_NODES = 1; const MINIMUM_SWARM_NODES = 1;

Loading…
Cancel
Save