-
Notifications
You must be signed in to change notification settings - Fork 705
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tmpnet
: Separate network into orchestration and configuration
#2464
Conversation
7c2ca56
to
c36886d
Compare
d49d6f4
to
7d3474d
Compare
77139c8
to
227ed81
Compare
7d3474d
to
282f77d
Compare
e46d2e2
to
f1cf61c
Compare
tmpnet
: Separate network into orchestration and configuration
282f77d
to
6b22969
Compare
1fa086e
to
75f3b99
Compare
6b22969
to
d4e2f67
Compare
75f3b99
to
0a5764e
Compare
c6f2252
to
969b064
Compare
e09de33
to
c40f346
Compare
969b064
to
5b9bf79
Compare
c40f346
to
5925f98
Compare
5b9bf79
to
7c8a744
Compare
b86451d
to
99eecff
Compare
6beb808
to
ef41e2e
Compare
80f6c63
to
f1ec505
Compare
f1ec505
to
6939831
Compare
tests/fixture/tmpnet/network.go
Outdated
@@ -24,222 +23,152 @@ import ( | |||
"github.com/ava-labs/avalanchego/utils/set" | |||
) | |||
|
|||
// The Network type is defined in this file (network.go - orchestration) and | |||
// network.go (reading/writing configuration). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this a typo? Or is there another network.go file I'm missing that this is in reference to?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, a typo. Fixed.
tests/fixture/tmpnet/network.go
Outdated
// that an error condition will not result in a lingering process. | ||
stopErr := node.Stop(ctx) | ||
if stopErr != nil { | ||
err = errors.Join(err, stopErr) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need this stopErr != nil
check. The spec says: "Join returns an error that wraps the given errors. Any nil error values are discarded."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
6939831
to
122a88a
Compare
- Move methods to read/write network into network_config.go
122a88a
to
1fda407
Compare
Previously tmpnet/network.go contained methods to orchestrate networks and read and write their configuration. This PR moves reading/writing of configuration to network_config.go. The separation is intended to improve maintainability.