mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-24 01:08:31 +02:00
performance improvement and small fix on loadbalancer
This commit is contained in:
@@ -26,7 +26,7 @@ func NewServer(name string, url types.URL, weight weightType, handler http.Handl
|
||||
srv := &Server{
|
||||
Name: name,
|
||||
URL: url,
|
||||
Weight: weightType(weight),
|
||||
Weight: weight,
|
||||
handler: handler,
|
||||
pinger: &http.Client{Timeout: 3 * time.Second},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user