• Steven Allen's avatar
    fix: correctly track CPLs of never refreshed buckets · 7c961a02
    Steven Allen authored
    To determine how many buckets we should refresh, we:
    
    1. Look at the max bucket.
    2. Look at the peer with the greatest common prefix in the max bucket.
    3. Return the "last refresh" times for all buckets between 0 and `min(maxPeer, 15)`
    
    BREAKING: this returns a slice of times instead of CplRefresh objects because we
    want to refresh _all_ buckets between 0 and the max CPL.
    7c961a02
bucket.go 3.16 KB