Skip to content

Commit e58abbf

Browse files
committed
graph/db: fix edges bucket check
This commit fixes a bug that would check that the passed `edge` argument of UpdateChannelEdge is nil but it should actually be checking if the `edges` bucket is nil.
1 parent b08bc99 commit e58abbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graph/db/graph.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1309,7 +1309,7 @@ func (c *ChannelGraph) UpdateChannelEdge(edge *models.ChannelEdgeInfo) error {
13091309

13101310
return kvdb.Update(c.db, func(tx kvdb.RwTx) error {
13111311
edges := tx.ReadWriteBucket(edgeBucket)
1312-
if edge == nil {
1312+
if edges == nil {
13131313
return ErrEdgeNotFound
13141314
}
13151315

0 commit comments

Comments
 (0)