You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 3, 2023. It is now read-only.
Shouldn't we discover on start instead of setting an interval and initially discovering after 10s? Looks like this is the main issue behind ipfs/js-ipfs#1706
Previously we had to wait 10s (by default) **before** initial peer discovery, since the module uses an interval to re-emit discovered peers every 10s. This PR refactors `start` to do an initial discovery of the boostrap peers immediately after it has started (i.e. after the callback has been called).
This addresses the problem where a call to `cat`/`get`/others immediately after the IPFS `ready` event would take at minimum 10s to get content stored on the preload nodes due to the initial delay in discovery.
fixes#85resolvesipfs/js-ipfs#1706
License: MIT
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
Previously we had to wait 10s (by default) **before** initial peer discovery, since the module uses an interval to re-emit discovered peers every 10s. This PR refactors `start` to do an initial discovery of the boostrap peers immediately after it has started (i.e. after the callback has been called).
This addresses the problem where a call to `cat`/`get`/others immediately after the IPFS `ready` event would take at minimum 10s to get content stored on the preload nodes due to the initial delay in discovery.
fixes#85resolvesipfs/js-ipfs#1706
License: MIT
Signed-off-by: Alan Shaw <alan.shaw@protocol.ai>
Shouldn't we discover on
start
instead of setting an interval and initially discovering after 10s? Looks like this is the main issue behind ipfs/js-ipfs#1706js-libp2p-bootstrap/src/index.js
Lines 35 to 49 in eb2d882
Here we set an interval, which triggers initially after 10s.
refs #72
The text was updated successfully, but these errors were encountered: