• Jeromy's avatar
    Move findproviders out of main block request path · f574cd4b
    Jeromy authored
    This PR moves the addition of new blocks to our wantlist (and their
    subsequent broadcast to the network) outside of the clientWorker loop.
    This allows blocks to more quickly propogate to peers we are already
    connected to, where before we had to wait for the previous findProviders
    call in clientworker to complete before we could notify our partners of
    the next blocks that we want. I then changed the naming of the
    clientWorker and related variables to be a bit more appropriate to the
    model. Although the clientWorker (now named providerConnector) feels a
    bit awkward and should probably be changed.
    
    fix test assumption
    f574cd4b
bitswap_wo_routing_test.go 2.29 KB