graph/db: refactor source node fetching logic

Small refactor to introduce a re-usable getSourceNode function that we
can then make use of in the upcoming kvdb->SQL migration logic.
This commit is contained in:
Elle Mouton committed 2025-07-01 13:37:07 +02:00
1 parent 016fd9bb4d
commit 2310756307
2 files changed
+14 -12

No files matched your search

+1 -1
View File
@@ -3699,7 +3699,7 @@ type srcNodeInfo struct {
pub route.Vertex
}
// getSourceNode returns the DB node ID and pub key of the source node for the
// sourceNode returns the DB node ID and pub key of the source node for the
// specified protocol version.
func (s *SQLStore) getSourceNode(ctx context.Context, db SQLQueries,
version ProtocolVersion) (int64, route.Vertex, error) {