graph/db: refactor buildNode to not take a pointer

Since the type returned from the DB is not a pointer. This will be
useful later on.
This commit is contained in:
Elle Mouton committed 2025-08-07 08:04:20 +02:00
1 parent f51adaf31f
commit ce3401ee5d
2 files changed
+8 -8

No files matched your search

+1 -1
View File
@@ -192,7 +192,7 @@ func migrateNodes(ctx context.Context, kvBackend kvdb.Backend,
pub, id, dbNode.ID)
}
migratedNode, err := buildNode(ctx, sqlDB, &dbNode)
migratedNode, err := buildNode(ctx, sqlDB, dbNode)
if err != nil {
return fmt.Errorf("could not build migrated node "+
"from dbNode(db id: %d, node pub: %x): %w",