Skip to content

Commit

Permalink
Skip DN version check in SDK if empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
dharit-tan authored Jan 17, 2023
1 parent 259732a commit 041bcc2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libs/src/sdk/middleware/discoveryNodeSelectorMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,10 @@ const isDiscoveryNodeHealthy = async ({
})
return false
}
if (!data.version || semver.lt(data.version, currentVersion)) {
if (
currentVersion &&
(!data.version || semver.lt(data.version, currentVersion))
) {
console.warn('Audius SDK discovery provider version unhealthy', {
endpoint
})
Expand Down

0 comments on commit 041bcc2

Please sign in to comment.