Skip to content

Commit b90cf85

Browse files
committed
feat: srw
1 parent 177a3dc commit b90cf85

File tree

6 files changed

+865
-132
lines changed

6 files changed

+865
-132
lines changed

aws_advanced_python_wrapper/plugin_service.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@
8080
from aws_advanced_python_wrapper.hostinfo import HostInfo, HostRole
8181
from aws_advanced_python_wrapper.iam_plugin import IamAuthPluginFactory
8282
from aws_advanced_python_wrapper.plugin import CanReleaseResources
83-
from aws_advanced_python_wrapper.read_write_splitting_plugin import \
84-
ReadWriteSplittingPluginFactory
83+
from aws_advanced_python_wrapper.read_write_splitting_plugin import (
84+
ReadWriteSplittingPluginFactory, SimpleReadWriteSplittingPluginFactory)
8585
from aws_advanced_python_wrapper.stale_dns_plugin import StaleDnsPluginFactory
8686
from aws_advanced_python_wrapper.utils.cache_map import CacheMap
8787
from aws_advanced_python_wrapper.utils.decorators import \
@@ -760,6 +760,7 @@ class PluginManager(CanReleaseResources):
760760
"host_monitoring_v2": HostMonitoringV2PluginFactory,
761761
"failover": FailoverPluginFactory,
762762
"read_write_splitting": ReadWriteSplittingPluginFactory,
763+
"srw": SimpleReadWriteSplittingPluginFactory,
763764
"fastest_response_strategy": FastestResponseStrategyPluginFactory,
764765
"stale_dns": StaleDnsPluginFactory,
765766
"custom_endpoint": CustomEndpointPluginFactory,
@@ -784,6 +785,7 @@ class PluginManager(CanReleaseResources):
784785
AuroraConnectionTrackerPluginFactory: 100,
785786
StaleDnsPluginFactory: 200,
786787
ReadWriteSplittingPluginFactory: 300,
788+
SimpleReadWriteSplittingPluginFactory: 310,
787789
FailoverPluginFactory: 400,
788790
HostMonitoringPluginFactory: 500,
789791
HostMonitoringV2PluginFactory: 510,

0 commit comments

Comments
 (0)