broke up session loop

This commit is contained in:
Jay
2026-06-07 09:14:13 -04:00
parent 4b7e68c8fc
commit 697d02950c
2 changed files with 119 additions and 101 deletions
+4 -4
View File
@@ -119,9 +119,9 @@ func WithEventsBufferSize(value int) PoolOption {
}
}
func WithSessionConfig(wc SessionConfig) PoolOption {
func WithSessionConfig(cfg SessionConfig) PoolOption {
return func(c *PoolConfig) {
c.SessionConfig = wc
c.SessionConfig = cfg
}
}
@@ -356,8 +356,8 @@ func (p *Pool) Connect(id string, opts ...ConnectOption) error {
dialFn = o.dialFn
}
wc := p.config.SessionConfig
session, err := newSession(p.ctx, id, dialFn, &wc, p.handler)
sc := p.config.SessionConfig
session, err := newSession(p.ctx, id, dialFn, &sc, p.handler)
if err != nil {
return err
}