Skip to content
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

Defer all possible errors from connect_lazy until request time #18536

Merged
merged 1 commit into from
Jul 5, 2024

Conversation

mystenmark
Copy link
Contributor

No description provided.

@mystenmark mystenmark requested review from bmwill, lxfind and longbowlu July 5, 2024 19:13
Copy link

vercel bot commented Jul 5, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 5, 2024 9:57pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Jul 5, 2024 9:57pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Jul 5, 2024 9:57pm
sui-typescript-docs ⬜️ Ignored (Inspect) Visit Preview Jul 5, 2024 9:57pm

@@ -90,7 +93,7 @@ pub trait AuthorityAPI {

#[derive(Clone)]
pub struct NetworkAuthorityClient {
client: ValidatorClient<Channel>,
client: SuiResult<ValidatorClient<Channel>>,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably better to just use Option instead of SuiResult?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The idea is that this propagates the actual error though

@mystenmark mystenmark force-pushed the mlogan-fix-connect-lazy branch from 9aa3fe9 to 3a3b007 Compare July 5, 2024 21:56
@mystenmark mystenmark requested a review from lxfind July 5, 2024 22:04
@mystenmark mystenmark enabled auto-merge (squash) July 5, 2024 22:04
@mystenmark mystenmark merged commit 4dc19ba into main Jul 5, 2024
48 checks passed
@mystenmark mystenmark deleted the mlogan-fix-connect-lazy branch July 5, 2024 22:25
@mystenmark mystenmark mentioned this pull request Jul 5, 2024
mystenmark added a commit that referenced this pull request Jul 10, 2024
tx-tomcat pushed a commit to tx-tomcat/sui-network that referenced this pull request Jul 29, 2024
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.

3 participants