graph/db: fix type name

This commit is contained in:
Elle Mouton committed 2025-09-04 17:10:44 +02:00
1 parent e46c676894
commit f2fa0a4da6
2 files changed
+12 -12

No files matched your search

+1 -1
View File
@@ -333,7 +333,7 @@ func migrateNodes(ctx context.Context, cfg *sqldb.QueryConfig,
// maybeOverrideNodeAddresses checks if the node has any opaque addresses that
// can be parsed. If so, it replaces the node's addresses with the parsed
// addresses. If the address is unparseable, it returns an error.
func maybeOverrideNodeAddresses(node *models.LightningNode) error {
func maybeOverrideNodeAddresses(node *models.Node) error {
// In the majority of cases, the number of node addresses will remain
// unchanged, so we pre-allocate a slice of the same length.
addrs := make([]net.Addr, 0, len(node.Addresses))