Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion channels/channels.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func (c *Channels) dispatch(eventName fsm.EventName, channel fsm.StateType) {
Message: realChannel.Message,
Timestamp: time.Now(),
}

log.Debugw("process data transfer listeners", "name", datatransfer.Events[evtCode], "transfer ID", realChannel.TransferID)
c.notifier(evt, c.fromInternalChannelState(realChannel))

// When the channel has been cleaned up, remove the caches of seen cids
Expand Down Expand Up @@ -406,6 +406,7 @@ func (c *Channels) send(chid datatransfer.ChannelID, code datatransfer.EventCode
if err != nil {
return err
}
log.Debugw("send data transfer event", "name", datatransfer.Events[code], "transfer ID", chid.ID, "args", args)
return c.stateMachines.Send(chid, code, args...)
}

Expand Down
3 changes: 2 additions & 1 deletion transport/graphsync/graphsync.go
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ func (c *dtChannel) gsReqOpened(gsKey graphsyncKey, hookActions graphsync.Outgoi
if c.hasStore() {
hookActions.UsePersistenceOption("data-transfer-" + c.channelID.String())
}

log.Infow("outgoing graphsync request", "peer", gsKey.p, "graphsync request id", gsKey.requestID, "data transfer channel id", c.channelID)
// Save a mapping from the graphsync key to the channel ID so that
// subsequent graphsync callbacks are associated with this channel
c.gsKeyToChannelID.set(gsKey, c.channelID)
Expand Down Expand Up @@ -982,6 +982,7 @@ func (c *dtChannel) gsDataRequestRcvd(gsKey graphsyncKey, hookActions graphsync.
// Save a mapping from the graphsync key to the channel ID so that
// subsequent graphsync callbacks are associated with this channel
c.gsKey = gsKey
log.Infow("incoming graphsync request", "peer", gsKey.p, "graphsync request id", gsKey.requestID, "data transfer channel id", c.channelID)
c.gsKeyToChannelID.set(gsKey, c.channelID)

c.isOpen = true
Expand Down