Skip to content

Conversation

@segfaultdoc
Copy link
Contributor

No description provided.

@segfaultdoc segfaultdoc force-pushed the seg/auth-fix branch 6 times, most recently from 30b7705 to 09cbab8 Compare August 15, 2022 22:26
@segfaultdoc segfaultdoc requested a review from buffalu August 17, 2022 15:17
@segfaultdoc segfaultdoc requested a review from buffalu August 17, 2022 15:31
@segfaultdoc segfaultdoc merged commit 7576808 into master Aug 17, 2022
@segfaultdoc segfaultdoc deleted the seg/auth-fix branch August 17, 2022 17:21
) -> (Arc<Mutex<Token>> /* access_token */, JoinHandle<()>) {
let rt = Runtime::new().unwrap();

let (access_token, refresh_token) = {
Copy link
Contributor

Choose a reason for hiding this comment

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

this will block forever if we can't connect to auth, which i think will stop the rest of the validator from starting

Copy link
Contributor

Choose a reason for hiding this comment

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

what if we pass the access token into this method and spin it up right away?

or do auth refresh inline with the rest of the work so it's not a separate thread

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.

4 participants