mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
pool: added a function to init bufPools
This commit is contained in:
1 parent
0b0611a0dc
commit
b74880ae7a
5 files changed
+26
-30
No files matched your search
@@ -17,13 +17,13 @@ import (
|
||||
|
||||
// Config is strategy config struct.
|
||||
type Config struct {
|
||||
Strategy string
|
||||
CheckWebSite string
|
||||
CheckInterval int
|
||||
CheckTimeout int
|
||||
CheckFailedOnly bool
|
||||
MaxFailures int
|
||||
IntFace string
|
||||
Strategy string
|
||||
CheckWebSite string
|
||||
CheckInterval int
|
||||
CheckTimeout int
|
||||
CheckDisabledOnly bool
|
||||
MaxFailures int
|
||||
IntFace string
|
||||
}
|
||||
|
||||
// forwarder slice orderd by priority
|
||||
@@ -204,7 +204,7 @@ func (p *Proxy) check(f *Forwarder) {
|
||||
continue
|
||||
}
|
||||
|
||||
if f.Enabled() && p.config.CheckFailedOnly {
|
||||
if f.Enabled() && p.config.CheckDisabledOnly {
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user