fix(storageminer): fix conditional

This commit is contained in:
hannahhoward 2021-12-10 17:50:12 -08:00
parent ced22687eb
commit 8a923fb420

View File

@ -636,7 +636,7 @@ func (tc *transferConverter) convertTransfer(channelID datatransfer.ChannelID, h
stateString = "no graphsync state found"
}
var channelIDPtr *datatransfer.ChannelID
if hasChannelID {
if !hasChannelID {
diagnostics = append(diagnostics, fmt.Sprintf("No data transfer channel id for GraphSync request ID %d", requestID))
} else {
channelIDPtr = &channelID