From 7a8b0791c550c02fa8dfbf109f6ec00163fa197a Mon Sep 17 00:00:00 2001 From: Aarsh Shah Date: Tue, 17 Aug 2021 16:07:31 +0530 Subject: [PATCH 1/2] log closing of completion channel --- transport/graphsync/graphsync.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/transport/graphsync/graphsync.go b/transport/graphsync/graphsync.go index af1ec3a0..9eb6d4de 100644 --- a/transport/graphsync/graphsync.go +++ b/transport/graphsync/graphsync.go @@ -179,7 +179,10 @@ func (t *Transport) consumeResponses(responseChan <-chan graphsync.ResponseProgr // Read from the graphsync response and error channels until they are closed // or there is an error, then call the channel completed callback func (t *Transport) executeGsRequest(req *gsReq) { - defer req.onComplete() + defer func() { + log.Infow("gs request complete for channel", "chid", req.channelID) + req.onComplete() + }() lastError := t.consumeResponses(req.responseChan, req.errChan) @@ -885,6 +888,7 @@ func (c *dtChannel) open(ctx context.Context, chid datatransfer.ChannelID, dataS // completes (or is cancelled) completed := make(chan struct{}) onComplete := func() { + log.Infow("closing the completion ch for data-transfer channel", "chid", chid) close(completed) } c.completed = completed From bd8a620ae00b307e4e8d884af577aded5ffb0bd2 Mon Sep 17 00:00:00 2001 From: Aarsh Shah Date: Tue, 17 Aug 2021 17:03:28 +0530 Subject: [PATCH 2/2] fix ci --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e8342c32..e9af8727 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -25,7 +25,7 @@ commands: - when: condition: << parameters.linux >> steps: - - run: sudo apt-get update + - run: sudo apt-get update --allow-releaseinfo-change - run: sudo apt-get install ocl-icd-opencl-dev build-all: