• Juan Batiz-Benet's avatar
    dht/query: fix important panic · 1f317e75
    Juan Batiz-Benet authored
    Withe queries (particularly providers), it was possible to
    exit the query runner's Run BEFORE all its children were done,
    because the runner itself only listened to the context. This
    introduced the possibility of a panic (you can go check it
    out by running the TestProvidersMany test on dht_test in commits
    before this one).  Thankfully, ctxgroup saved the day with
    almost _zero_ changes to the sync flow, and now we have the
    guarantee that the query runner will only exit if all its
    children are done. 
    
    Conflicts:
    	routing/dht/query.go
    1f317e75
dht_net.go 3.42 KB