Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
morphy2k committed Aug 31, 2021
1 parent f751af3 commit 6123a09
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lib/worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,8 @@ const notInReplicaSet = async (db, pods) => {
if (podElection(pods)) {
console.info("Pod has been elected for replica set initialization");
const primary = pods[0]; // After the sort election, the 0-th pod should be the primary.
const primaryStableNetworkAddressAndPort = getPodStableNetworkAddressAndPort(
primary
);
const primaryStableNetworkAddressAndPort =
getPodStableNetworkAddressAndPort(primary);
// Prefer the stable network ID over the pod IP, if present.
const primaryAddressAndPort =
primaryStableNetworkAddressAndPort || hostIpAndPort;
Expand Down

0 comments on commit 6123a09

Please sign in to comment.