graph/db: fix HasNode comment
The comment was incorrectly referring to HasLightningNode but the function is named HasNode. Update the comment to match the actual function name.
This commit is contained in:
1 file changed
+4
-5
@@ -3431,11 +3431,10 @@ func (c *KVStore) fetchLightningNode(tx kvdb.RTx,
|
|||||||
return node, nil
|
return node, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// HasLightningNode determines if the graph has a vertex identified by the
|
// HasNode determines if the graph has a vertex identified by the target node
|
||||||
// target node identity public key. If the node exists in the database, a
|
// identity public key. If the node exists in the database, a timestamp of when
|
||||||
// timestamp of when the data for the node was lasted updated is returned along
|
// the data for the node was lasted updated is returned along with a true
|
||||||
// with a true boolean. Otherwise, an empty time.Time is returned with a false
|
// boolean. Otherwise, an empty time.Time is returned with a false boolean.
|
||||||
// boolean.
|
|
||||||
func (c *KVStore) HasNode(_ context.Context,
|
func (c *KVStore) HasNode(_ context.Context,
|
||||||
nodePub [33]byte) (time.Time, bool, error) {
|
nodePub [33]byte) (time.Time, bool, error) {
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user