mirror of
https://github.com/mempool/mempool.git
synced 2025-02-24 22:58:30 +01:00
hotfix for axios breaking change to unix sockets
This commit is contained in:
parent
dbe774cc64
commit
be17e45785
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ class FailoverRouter {
|
|||
for (const host of this.hosts) {
|
||||
try {
|
||||
const result = await (host.socket
|
||||
? this.pollConnection.get<number>('/blocks/tip/height', { socketPath: host.host, timeout: config.ESPLORA.FALLBACK_TIMEOUT })
|
||||
? this.pollConnection.get<number>('http://localhost/blocks/tip/height', { socketPath: host.host, timeout: config.ESPLORA.FALLBACK_TIMEOUT })
|
||||
: this.pollConnection.get<number>(host.host + '/blocks/tip/height', { timeout: config.ESPLORA.FALLBACK_TIMEOUT })
|
||||
);
|
||||
if (result) {
|
||||
|
|
Loading…
Add table
Reference in a new issue