Skip to content

refactor: use AgentEnvironment.get_network_descriptor() rather than creating a second one#2234

Merged
mergify[bot] merged 2 commits intomasterfrom
ericswanson/use-network-descriptor
May 26, 2022
Merged

refactor: use AgentEnvironment.get_network_descriptor() rather than creating a second one#2234
mergify[bot] merged 2 commits intomasterfrom
ericswanson/use-network-descriptor

Conversation

@ghost
Copy link

@ghost ghost commented May 26, 2022

Description

There were three places that created a new NetworkDescriptor rather than using the one already available from the AgentEnvironment. This reduces the call points to get_network_descriptor() to the four places where it's actually required:

  • create_agent_environment
  • start, bootstrap, ping commands

How Has This Been Tested?

Covered by e2e tests

@ghost ghost self-requested a review as a code owner May 26, 2022 19:15
@ghost ghost added the automerge-squash label May 26, 2022
@mergify mergify bot merged commit 681b171 into master May 26, 2022
@mergify mergify bot deleted the ericswanson/use-network-descriptor branch May 26, 2022 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant