this tunes the directory lookup timeout to 5s, so that a single directory failure (or libp2p acting mysterious and failing to connect) will not hold up a dht lookup for a full 10s in the case of unregistered nodes.
Could be even lower, maybe 2-3s, but I would rather be conservative with this; 5s is a potentially slow lookup from the dht, but not intolerably so.
this tunes the directory lookup timeout to 5s, so that a single directory failure (or libp2p acting mysterious and failing to connect) will not hold up a dht lookup for a full 10s in the case of unregistered nodes.
Could be even lower, maybe 2-3s, but I would rather be conservative with this; 5s is a potentially slow lookup from the dht, but not intolerably so.