channeldb: fix typo in AddChannelEdge

This commit is contained in:
Olaoluwa Osuntokun committed 2017-01-09 19:02:37 -08:00
1 parent a1d584f1b2
commit 5f2f77e873
1 file changed
+1 -1
+1 -1
View File
@@ -403,7 +403,7 @@ func (c *ChannelGraph) AddChannelEdge(from, to *btcec.PublicKey,
// First, attempt to check if this edge has already been
// created. If so, then we can exit early as this method is
// meant to be idempotent.
if edgeInfo := edgeIndex.Get(chanIDKey[:]); edgeInfo != nil {
if edgeInfo := edgeIndex.Get(chanKey[:]); edgeInfo != nil {
return nil
}