Skip to content

Commit

Permalink
fix: init failover settings before creating reader and writer failove…
Browse files Browse the repository at this point in the history
…r handlers
  • Loading branch information
crystall-bitquill committed Feb 6, 2025
1 parent b0419c2 commit d640937
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion common/lib/plugins/failover/failover_plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ export class FailoverPlugin extends AbstractConnectionPlugin {
this._properties = properties;
this.pluginService = pluginService;
this._rdsHelper = rdsHelper;

this.initSettings();

this._readerFailoverHandler = readerFailoverHandler
? readerFailoverHandler
: new ClusterAwareReaderFailoverHandler(
Expand All @@ -120,7 +123,6 @@ export class FailoverPlugin extends AbstractConnectionPlugin {
this.failoverClusterTopologyRefreshRateMsSetting,
this.failoverWriterReconnectIntervalMsSetting
);
this.initSettings();
this._staleDnsHelper = new StaleDnsHelper(this.pluginService);

const telemetryFactory = this.pluginService.getTelemetryFactory();
Expand Down

0 comments on commit d640937

Please sign in to comment.