From 952bb18eead69ebc99c521c32412fa1017e8608a Mon Sep 17 00:00:00 2001
From: Steven Allen <steven@stebalien.com>
Date: Thu, 23 Apr 2020 09:27:08 -0700
Subject: [PATCH] fix: thread through right context

Co-Authored-By: dirkmc <dirkmdev@gmail.com>
---
 core/commands/dag/dag.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/commands/dag/dag.go b/core/commands/dag/dag.go
index 7b4fe3dc6..4608b7c58 100644
--- a/core/commands/dag/dag.go
+++ b/core/commands/dag/dag.go
@@ -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
-- 
GitLab