Skip to content

Commit

Permalink
Remove useRetryWithRelogin usage
Browse files Browse the repository at this point in the history
  • Loading branch information
gzdunek committed Jul 18, 2023
1 parent 1a71f56 commit fefda87
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,12 @@ function AgentSetup() {
)
);
const [generateConfigFileAttempt, runGenerateConfigFileAttempt] = useAsync(
useRetryWithRelogin(
ctx,
rootClusterUri,
useCallback(
() => ctx.connectMyComputerService.createAgentConfigFile(cluster),
[cluster, ctx.connectMyComputerService]
)
useCallback(
() =>
retryWithRelogin(ctx, rootClusterUri, () =>
ctx.connectMyComputerService.createAgentConfigFile(cluster)
),
[cluster, ctx, rootClusterUri]
)
);
const [joinClusterAttempt, runJoinClusterAttempt] = useAsync(
Expand Down

0 comments on commit fefda87

Please sign in to comment.