Skip to content

Commit

Permalink
fix: revert renaming to isHotStandby to avoid conflict with MOS-Gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
olzzon committed Nov 21, 2024
1 parent 4e9f719 commit 562d74b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/connector/src/MosConnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,10 @@ export class MosConnection extends EventEmitter<MosConnectionEvents> implements
false
)
}
// Handle that .isHotStandby should not check for heartbeats on
// Handle that .openMediaHotStandby should not check for heartbeats on
// the secondary connection when the primary is connected
// And disable heartbeats on the primary when the primary is disconnected
if (connectionOptions.secondary?.isHotStandby) {
if (connectionOptions.secondary?.openMediaHotStandby) {
// Initially disable heartbeats on secondary since primary should be attempted first
secondary.disableHeartbeats()

Expand Down
2 changes: 1 addition & 1 deletion packages/connector/src/__tests__/MosConnection.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ describe('MosDevice: General', () => {
id: 'secondary',
host: '192.168.0.2',
timeout: 200,
isHotStandby: true,
openMediaHotStandby: true,
},
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('Hot Standby Feature', () => {
secondary: {
id: 'secondary',
host: '127.0.0.2',
isHotStandby: true
openMediaHotStandby: true
}
});

Expand Down
2 changes: 1 addition & 1 deletion packages/connector/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -672,6 +672,6 @@ export interface IMOSDeviceConnectionOptions {
*
* (This was added to support the hot standby feature of OpenMedia NRCS.)
*/
isHotStandby?: boolean
openMediaHotStandby?: boolean
}
}

0 comments on commit 562d74b

Please sign in to comment.