Merge pull request #5504 from mempool/revert-5502-mononaut/axios-socket-hotfix-1
Revert "hotfix option 1 for axios breaking change to unix sockets"
This commit is contained in:
		
						commit
						92090399cc
					
				| @ -89,7 +89,7 @@ class FailoverRouter { | |||||||
|     for (const host of this.hosts) { |     for (const host of this.hosts) { | ||||||
|       try { |       try { | ||||||
|         const result = await (host.socket |         const result = await (host.socket | ||||||
|           ? this.pollConnection.get<number>('http://localhost/blocks/tip/height', { socketPath: host.host, timeout: config.ESPLORA.FALLBACK_TIMEOUT }) |           ? this.pollConnection.get<number>('/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 }) |           : this.pollConnection.get<number>(host.host + '/blocks/tip/height', { timeout: config.ESPLORA.FALLBACK_TIMEOUT }) | ||||||
|         ); |         ); | ||||||
|         if (result) { |         if (result) { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user