channeldb+lntest: code style fixes

This commit is contained in:
Olaoluwa Osuntokun
2019-11-27 15:20:06 -06:00
parent 8b3dd9415e
commit 5bdb0d3d66
2 changed files with 39 additions and 24 deletions

View File

@@ -596,6 +596,7 @@ func (c *OpenChannel) hasChanStatus(status ChannelStatus) bool {
// RefreshShortChanID updates the in-memory channel state using the latest
// value observed on disk.
//
// TODO: the name of this function should be changed to reflect the fact that
// it is not only refreshing the short channel id but all the channel state.
// maybe Refresh/Reload?
@@ -611,7 +612,8 @@ func (c *OpenChannel) RefreshShortChanID() error {
return err
}
// populating the in-memory channel with the info fetched from disk.
// We'll re-populating the in-memory channel with the info
// fetched from disk.
if err := fetchChanInfo(chanBucket, c); err != nil {
return fmt.Errorf("unable to fetch chan info: %v", err)
}