mirror of
https://github.com/mempool/mempool.git
synced 2025-03-13 11:36:07 +01:00
[esplora] reset timeout variable when retrying unix socket
This commit is contained in:
parent
db27e5a92c
commit
ab7cb5f681
1 changed files with 1 additions and 0 deletions
|
@ -34,6 +34,7 @@ class ElectrsApi implements AbstractBitcoinApi {
|
|||
this.unixSocketRetryTimeout = setTimeout(() => {
|
||||
logger.info(`Retrying to use unix socket for esplora now (applied for the next query)`);
|
||||
this.activeAxiosConfig = this.axiosConfigWithUnixSocket;
|
||||
this.unixSocketRetryTimeout = undefined;
|
||||
}, config.ESPLORA.RETRY_UNIX_SOCKET_AFTER);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue