File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ func init() {
4444// if multiple callers "simultaneously" ask for a self walk, it performs ONLY one self walk and sends the same error status to all of them.
4545func (dht * IpfsDHT ) startSelfLookup () {
4646 dht .proc .Go (func (proc process.Process ) {
47- ctx := processctx .OnClosingContext ( proc )
47+ ctx := processctx .WithProcessClosing ( dht . ctx , proc )
4848 for {
4949 var waiting []chan <- error
5050 select {
@@ -85,7 +85,7 @@ func (dht *IpfsDHT) startSelfLookup() {
8585func (dht * IpfsDHT ) startRefreshing () {
8686 // scan the RT table periodically & do a random walk for cpl's that haven't been queried since the given period
8787 dht .proc .Go (func (proc process.Process ) {
88- ctx := processctx .OnClosingContext ( proc )
88+ ctx := processctx .WithProcessClosing ( dht . ctx , proc )
8989
9090 refreshTicker := time .NewTicker (dht .rtRefreshInterval )
9191 defer refreshTicker .Stop ()
You can’t perform that action at this time.
0 commit comments