Skip to content

Commit ae8d9c8

Browse files
committed
fix: rendering of peer id for http peers
1 parent c2067a5 commit ae8d9c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,14 +354,14 @@ <h2 class="f4">What does it mean if I get an error?</h2>
354354
outText += `${successfulProviders > 0 ? '✅' : '❌'} Found ${successfulProviders} working providers (out of ${resp.length} provider records sampled from Amino DHT and IPNI) that could be connected to and had the CID available over Bitswap:`
355355
for (const provider of resp) {
356356
const couldConnect = provider.ConnectionError === ''
357-
357+
outText += `\n\t${provider.ID}\n`
358358
if (provider.DataAvailableOverBitswap.Enabled === true) {
359-
outText += `\n\t${provider.ID}\n\t\tLibp2p connected: ${couldConnect ? "✅" : `❌ ${provider.ConnectionError.replaceAll('\n', '\n\t\t')}` }`
359+
outText += `\t\tLibp2p connected: ${couldConnect ? "✅" : `❌ ${provider.ConnectionError.replaceAll('\n', '\n\t\t')}` }`
360360
outText += couldConnect ? `\n\t\tBitswap Check: ${provider.DataAvailableOverBitswap.Found ? `✅` : "❌"} ${provider.DataAvailableOverBitswap.Error || ''}` : ''
361361
}
362362
if (provider.DataAvailableOverHTTP.Enabled === true) {
363363
const httpRes = provider.DataAvailableOverHTTP
364-
outText += `\n\t\tHTTP Connected: ${httpRes.Connected ? '✅' : '❌'} ${provider.DataAvailableOverHTTP.Error || ''}`
364+
outText += `\t\tHTTP Connected: ${httpRes.Connected ? '✅' : '❌'} ${provider.DataAvailableOverHTTP.Error || ''}`
365365
outText += `\n\t\tHTTP HEAD request: ${httpRes.Requested ? '✅' : '❌'} ${provider.DataAvailableOverHTTP.Error || ''}`
366366
outText += `\n\t\tHTTP Found: ${httpRes.Found ? '✅' : '❌'} ${provider.DataAvailableOverHTTP.Error || ''}`
367367
}

0 commit comments

Comments
 (0)