Skip to content

Commit

Permalink
Merge pull request #5922 from leather-io/release/fix-gaia-priority-level
Browse files Browse the repository at this point in the history
Release/fix gaia priority level
  • Loading branch information
alter-eggo authored Oct 24, 2024
2 parents ed593f3 + 0de2060 commit 93146d5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@
"@leather.io/constants": "0.12.5",
"@leather.io/crypto": "1.6.6",
"@leather.io/models": "0.18.2",
"@leather.io/query": "2.15.2",
"@leather.io/query": "2.16.0",
"@leather.io/stacks": "1.2.3",
"@leather.io/tokens": "0.9.1",
"@leather.io/ui": "1.30.0",
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/app/common/authentication/use-finish-auth-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
} from '@stacks/wallet-sdk';

import { gaiaUrl } from '@leather.io/constants';
import { useHiroApiRateLimiter } from '@leather.io/query';
import { hiroApiRequestsPriorityLevels, useHiroApiRateLimiter } from '@leather.io/query';

import { finalizeAuthResponse } from '@shared/actions/finalize-auth-response';
import { logger } from '@shared/logger';
Expand Down Expand Up @@ -60,7 +60,7 @@ export function useFinishAuthRequest() {
const gaiaHubConfig = await hiroLimiter.add(
() => createWalletGaiaConfig({ gaiaHubUrl: gaiaUrl, wallet }),
{
priority: 5,
priority: hiroApiRequestsPriorityLevels.createWalletGaiaConfig,
throwOnTimeout: true,
}
);
Expand Down Expand Up @@ -99,7 +99,7 @@ export function useFinishAuthRequest() {
},
});
},
{ priority: 5, throwOnTimeout: true }
{ priority: hiroApiRequestsPriorityLevels.makeAuthResponse, throwOnTimeout: true }
);

keyActions.switchAccount(accountIndex);
Expand Down

0 comments on commit 93146d5

Please sign in to comment.