Merge pull request #2871 from filecoin-project/fix/bail-on-store-err
Bail out if there's an error writing state to store
This commit is contained in:
commit
245fe6e3df
@ -407,6 +407,7 @@ func (ca *channelAccessor) mutateChannelInfo(channelID string, mutate func(*Chan
|
|||||||
// the message, and then record that the message was sent.
|
// the message, and then record that the message was sent.
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorf("Error reading channel info from store: %s", err)
|
log.Errorf("Error reading channel info from store: %s", err)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
mutate(channelInfo)
|
mutate(channelInfo)
|
||||||
|
Loading…
Reference in New Issue
Block a user