Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can avoid touching it here and instead made the change here
https://github.com/AudiusProject/audius-protocol/blob/2a6c888ef4bf4d2bd44a2b7e3229f6a409af98d6/packages/libs/src/sdk/services/DiscoveryNodeSelector/DiscoveryNodeSelector.ts#L217
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think Alec's point is that the above code doesn't actually use the mainline DN
postwrapper linked here... but instead is using theidentityService.relayfunction with abaseURLoverride.Since there is a
retrywrapper this will probably work, altho we might want tothrowinstead ofreturnat line 276.But yeah I think we could also change this around to have a more divergent code path for
discoveryRelaythat uses the DN post wrapper, and maybe even delete the identity relay code. Possibly in a later PR if we want a quick fix.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. game for this as a quick fix then
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Steve is right and that's why I didn't put the change here initially and it's also why the post hook wasn't being called. I've pushed a change that does use the DN post wrapper though. This required chain_health being added to the health check as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can revert this change and submit it in a later PR if we are good with the quick fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes!