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
|
||||
}
|
||||
|
||||
// HasLightningNode determines if the graph has a vertex identified by the
|
||||
// target node identity public key. If the node exists in the database, a
|
||||
// timestamp of when the data for the node was lasted updated is returned along
|
||||
// with a true boolean. Otherwise, an empty time.Time is returned with a false
|
||||
// boolean.
|
||||
// HasNode determines if the graph has a vertex identified by the target node
|
||||
// identity public key. If the node exists in the database, a timestamp of when
|
||||
// the data for the node was lasted updated is returned along with a true
|
||||
// boolean. Otherwise, an empty time.Time is returned with a false boolean.
|
||||
func (c *KVStore) HasNode(_ context.Context,
|
||||
nodePub [33]byte) (time.Time, bool, error) {
|
||||
|
||||
|
||||
Reference in new issue
Block a user