multi: rename models.LightningNode to models.Node

This commit is contained in:
Elle Mouton committed 2025-09-03 10:14:35 +02:00
1 parent ea6cc8154f
commit c663a557c4
26 files changed
+212 -214

No files matched your search

+4 -5
View File
@@ -350,7 +350,7 @@ func TestPopulateDBs(t *testing.T) {
countNodes := func(graph *ChannelGraph) int {
numNodes := 0
err := graph.ForEachNode(
ctx, func(node *models.LightningNode) error {
ctx, func(node *models.Node) error {
numNodes++
return nil
@@ -580,7 +580,7 @@ func syncGraph(t *testing.T, src, dest *ChannelGraph) {
}
var wgNodes sync.WaitGroup
err := src.ForEachNode(ctx, func(node *models.LightningNode) error {
err := src.ForEachNode(ctx, func(node *models.Node) error {
wgNodes.Add(1)
go func() {
defer wgNodes.Done()
@@ -746,7 +746,7 @@ func BenchmarkGraphReadMethods(b *testing.B) {
fn: func(b testing.TB, store V1Store) {
err := store.ForEachNode(
ctx,
func(_ *models.LightningNode) error {
func(_ *models.Node) error {
// Increment the counter to
// ensure the callback is doing
// something.
@@ -932,10 +932,9 @@ func BenchmarkFindOptimalSQLQueryConfig(b *testing.B) {
numChannels = 0
)
//nolint:ll
err := store.ForEachNode(
ctx,
func(_ *models.LightningNode) error {
func(_ *models.Node) error {
numNodes++
return nil