• Steven Allen's avatar
    fix: improve context deadline handling · 1de9b905
    Steven Allen authored
    1. Continue to best-effort provide, but still return an error when we fail to
    send provider records to the _best_ peers.
    2. Continue returning the best peer's we've found in GetClosestPeers, but also
    return an error to indicate that we didn't find the closest ones.
    
    And fix the hang test.
    1de9b905
lookup.go 3.04 KB