fix: thread through right context

Co-Authored-By: dirkmc <dirkmdev@gmail.com>
This commit is contained in:
Steven Allen 2020-04-23 09:27:08 -07:00 committed by GitHub
parent 7374929a1d
commit 952bb18eea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -554,7 +554,7 @@ The output of blocks happens in strict DAG-traversal, first-seen, order.
}
ctx, cancel := context.WithCancel(req.Context)
ctx = exchange.NewSession(req.Context)
ctx = exchange.NewSession(ctx)
defer cancel()
// Code disabled until descent-issue in go-ipld-prime is fixed