good morning!!!!

Skip to content
Snippets Groups Projects
Commit dff23a14 authored by Garet Halliday's avatar Garet Halliday
Browse files

remove hardcoded

parent a27f8f42
No related branches found
No related tags found
No related merge requests found
......@@ -8,8 +8,6 @@ import (
"github.com/caddyserver/caddy/v2/caddyconfig"
"go.uber.org/zap"
"gfx.cafe/gfx/pggat/lib/gat/handlers/pool/critics/latency"
"gfx.cafe/gfx/pggat/lib/gat/handlers/pool"
"gfx.cafe/gfx/pggat/lib/gat/handlers/pool/poolers/lifo"
"gfx.cafe/gfx/pggat/lib/gat/handlers/pool/poolers/rob"
......@@ -77,12 +75,6 @@ func (T Config) Spool() spool.Config {
ReconnectInitialTime: time.Duration(T.ServerReconnectInitialTime),
ReconnectMaxTime: time.Duration(T.ServerReconnectMaxTime),
Critics: []pool.Critic{
&latency.Critic{
Threshold: caddy.Duration(200 * time.Millisecond),
},
},
Logger: T.Logger,
}
}
......
......@@ -6,9 +6,6 @@ import (
"github.com/caddyserver/caddy/v2"
"go.uber.org/zap"
"gfx.cafe/gfx/pggat/lib/gat/handlers/pool/critics/latency"
"gfx.cafe/gfx/pggat/lib/gat/handlers/pool"
"gfx.cafe/gfx/pggat/lib/gat/handlers/pool/poolers/rob"
"gfx.cafe/gfx/pggat/lib/gat/handlers/pool/spool"
"gfx.cafe/gfx/pggat/lib/util/strutil"
......@@ -34,12 +31,6 @@ func (T Config) Spool() spool.Config {
ReconnectInitialTime: time.Duration(T.ServerReconnectInitialTime),
ReconnectMaxTime: time.Duration(T.ServerReconnectMaxTime),
Critics: []pool.Critic{
&latency.Critic{
Threshold: caddy.Duration(200 * time.Millisecond),
},
},
Logger: T.Logger,
}
}
......@@ -41,6 +41,9 @@ import (
_ "gfx.cafe/gfx/pggat/lib/gat/handlers/pool/poolers/lifo"
_ "gfx.cafe/gfx/pggat/lib/gat/handlers/pool/poolers/rob"
// critics
_ "gfx.cafe/gfx/pggat/lib/gat/handlers/pool/critics/latency"
// pools
_ "gfx.cafe/gfx/pggat/lib/gat/handlers/pool/pools/basic"
_ "gfx.cafe/gfx/pggat/lib/gat/handlers/pool/pools/hybrid"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment