fix(storageminer): fix conditional
This commit is contained in:
parent
ced22687eb
commit
8a923fb420
@ -636,7 +636,7 @@ func (tc *transferConverter) convertTransfer(channelID datatransfer.ChannelID, h
|
|||||||
stateString = "no graphsync state found"
|
stateString = "no graphsync state found"
|
||||||
}
|
}
|
||||||
var channelIDPtr *datatransfer.ChannelID
|
var channelIDPtr *datatransfer.ChannelID
|
||||||
if hasChannelID {
|
if !hasChannelID {
|
||||||
diagnostics = append(diagnostics, fmt.Sprintf("No data transfer channel id for GraphSync request ID %d", requestID))
|
diagnostics = append(diagnostics, fmt.Sprintf("No data transfer channel id for GraphSync request ID %d", requestID))
|
||||||
} else {
|
} else {
|
||||||
channelIDPtr = &channelID
|
channelIDPtr = &channelID
|
||||||
|
Loading…
Reference in New Issue
Block a user