Updated connection config naming to introduce a dedicated pool configuration.

This commit is contained in:
Jay
2026-04-15 18:04:40 -04:00
parent 84f31ffdec
commit f45dc83179
9 changed files with 106 additions and 96 deletions

View File

@@ -62,7 +62,7 @@ type pool struct {
errors chan error
done chan struct{}
config *Config
config *ConnectionConfig
logger *slog.Logger
mu sync.RWMutex
@@ -131,12 +131,12 @@ type OutboundPool struct {
dialer Dialer
}
func NewOutboundPool(config *Config, logger *slog.Logger) (*OutboundPool, error) {
func NewOutboundPool(config *ConnectionConfig, logger *slog.Logger) (*OutboundPool, error) {
if config == nil {
config = GetDefaultConfig()
config = GetDefaultConnectionConfig()
}
if err := ValidateConfig(config); err != nil {
if err := validateConnectionConfig(config); err != nil {
return nil, err
}