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:
Łukasz Magiera 2020-08-06 21:43:13 +02:00 committed by GitHub
commit 245fe6e3df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -407,6 +407,7 @@ func (ca *channelAccessor) mutateChannelInfo(channelID string, mutate func(*Chan
// the message, and then record that the message was sent.
if err != nil {
log.Errorf("Error reading channel info from store: %s", err)
return
}
mutate(channelInfo)