more features
This commit is contained in:
@@ -6,9 +6,10 @@ import (
|
||||
)
|
||||
|
||||
func TestDiscardedHost(t *testing.T) {
|
||||
dh := NewDiscardedHostHandler(func(host string) {
|
||||
dh := NewDiscardedHostHandler(8080)
|
||||
dh.SetReconnectHandler(func(host string) {
|
||||
t.Log(host)
|
||||
}, 8080)
|
||||
})
|
||||
dh.AppendHost("localhost")
|
||||
time.Sleep(2 * time.Second)
|
||||
if dh.hosts[0].Tries == 0 {
|
||||
|
||||
Reference in New Issue
Block a user