Skip to content

refactor: Environment.get_network_descriptor() returns a ref, not an option#2220

Merged
mergify[bot] merged 4 commits intomasterfrom
ericswanson/network-descriptor-not-option
May 23, 2022
Merged

refactor: Environment.get_network_descriptor() returns a ref, not an option#2220
mergify[bot] merged 4 commits intomasterfrom
ericswanson/network-descriptor-not-option

Conversation

@ghost
Copy link

@ghost ghost commented May 20, 2022

Description

This eliminates a bunch of unwrap() and expect() calls that can never trigger, because the Environment in question is always an AgentEnvironment anyway. In practice, Environment::get_network_descriptor can never be called, so it now calls unreachable!().

This is preliminary work for system-wide dfx start

How Has This Been Tested?

e2e tests will cover it

Checklist:

  • The title of this PR complies with Conventional Commits.
  • (not needed) I have edited the CHANGELOG accordingly.
  • (not needed) I have made corresponding changes to the documentation.

…tion

zthis eliminates a bunch of unwrap() and expect() calls that can never trigger anyway, because the Environment in question is always an AgentEnvironment anyway.
@ghost ghost self-requested a review as a code owner May 20, 2022 21:35
@ghost ghost added the automerge-squash label May 23, 2022
@mergify mergify bot merged commit 3150d86 into master May 23, 2022
@mergify mergify bot deleted the ericswanson/network-descriptor-not-option branch May 23, 2022 19:16
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