Skip to content

Commit

Permalink
chore(suite): bump node bridge to 1%
Browse files Browse the repository at this point in the history
  • Loading branch information
MiroslavProchazka authored and mroz22 committed Oct 9, 2024
1 parent f98f570 commit 6c4a79b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/suite-desktop-core/src/modules/bridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const shouldUseLegacyBridge = (store: Dependencies['store']) => {
const newBridgeRollout = Math.round(Math.random() * 100) / 100;
store.setBridgeSettings({ ...store.getBridgeSettings(), newBridgeRollout });
}
const newBridgeRollout = store.getBridgeSettings().newBridgeRollout || 0;
const newBridgeRollout = store.getBridgeSettings().newBridgeRollout || 0.01;
// note that this variable is duplicated with UI
const NEW_BRIDGE_ROLLOUT_THRESHOLD = 0;
const legacyBridgeReasonRollout = newBridgeRollout >= NEW_BRIDGE_ROLLOUT_THRESHOLD;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ interface Process {
}

// note that this variable is duplicated with suite-desktop-core
const NEW_BRIDGE_ROLLOUT_THRESHOLD = 0;
const NEW_BRIDGE_ROLLOUT_THRESHOLD = 0.01;

export const TransportBackends = () => {
const allowPrerelease = useSelector(state => state.desktopUpdate.allowPrerelease);
Expand Down Expand Up @@ -124,7 +124,7 @@ export const TransportBackends = () => {
title="New bridge rollout"
description={
allowPrerelease
? 'New bridge is rolled out to all Trezor Suite instances that are in the Early access program.'
? 'New bridge is rolled out to all Trezor Suite instances that are in the Early access program and to a few users apart EAP.'
: `New bridge is rolled out to ${NEW_BRIDGE_ROLLOUT_THRESHOLD * 100} % of Trezor Suite instances outside of Early access. Your rollout score is ${((bridgeSettings.newBridgeRollout ?? 0) * 100).toFixed()}%`
}
/>
Expand Down

0 comments on commit 6c4a79b

Please sign in to comment.