Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

fix: delete addrs when "updating" them to zero #157

Merged
merged 1 commit into from
Apr 30, 2021

Commits on Apr 30, 2021

  1. fix: delete addrs when "updating" them to zero

    1. Fix expiration check to check "not before" instead of after.
    Otherwise, something that is expiring "now" won't count as expired. The
    datastore-backed peerstore already had the correct logic.
    2. Short-circuit updating the TTL to 0 and just delete the records.
    
    Note: this wasn't causing problems on Linux (likely due to monotonic
    clocks?) but was causing go-libp2p tests to fail reliably on Windows.
    Stebalien committed Apr 30, 2021
    Configuration menu
    Copy the full SHA
    cce0adb View commit details
    Browse the repository at this point in the history