Skip to content

Commit

Permalink
chore: Refactor federation.go to make it easier to read (#3183)
Browse files Browse the repository at this point in the history
* chore: Refactor federation.go

- Cut functions into smaller functions
- Remove mutation in several locations

This is setting up to make it easier to introduce improvements for #2991.

* Refactor InjectSourcesLate

Easier to reason about and read this way.

* Re-run go generate ./...

* regenerate

Signed-off-by: Steve Coffman <[email protected]>

---------

Signed-off-by: Steve Coffman <[email protected]>
Co-authored-by: Steve Coffman <[email protected]>
  • Loading branch information
clayne11 and StevenACoffman authored Jul 14, 2024
1 parent 4d8d93c commit de315d3
Show file tree
Hide file tree
Showing 6 changed files with 180 additions and 147 deletions.
3 changes: 1 addition & 2 deletions _examples/federation/accounts/graph/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions _examples/federation/products/graph/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions _examples/federation/reviews/graph/generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit de315d3

Please sign in to comment.