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

xds fail fast on invalid URI #161

Merged
merged 4 commits into from
Jan 14, 2021
Merged

xds fail fast on invalid URI #161

merged 4 commits into from
Jan 14, 2021

Conversation

iffyio
Copy link
Collaborator

@iffyio iffyio commented Dec 14, 2020

Rather than retry.
Also pass a struct with all resource handlers to the client rather
than individually. This allows us to easily add the listener handler later.

Work on #10

Rather than retry.
Also pass a struct with all resource handlers to the client rather
than individually. This allows us to easily add the listener handler later.

Work on #10
@@ -362,6 +364,19 @@ where
}
}

/// Awaits the provided future with a timeout.
/// Returns the future's result or None after the timeout elapses.
pub async fn await_with_timeout<T>(fut: impl Future<Output = T>, timeout: Duration) -> Option<T> {
Copy link
Member

Choose a reason for hiding this comment

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

That's a good idea!

Copy link
Member

Choose a reason for hiding this comment

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

Over the holidays, I finally found: https://docs.rs/tokio/0.2.24/tokio/time/fn.timeouthtml

Should we switch to this instead, rather than write our own?

Copy link
Member

@markmandel markmandel left a comment

Choose a reason for hiding this comment

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

Let's get it in there!

@markmandel markmandel added area/user-experience Pertaining to developers trying to use Quilkin, e.g. cli interface, configuration, etc kind/feature New feature or request labels Jan 13, 2021
@iffyio iffyio merged commit 827164f into master Jan 14, 2021
@markmandel markmandel deleted the iu/xds-client-invalid-uri branch January 14, 2021 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/user-experience Pertaining to developers trying to use Quilkin, e.g. cli interface, configuration, etc cla: yes kind/feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants