Fix: urltest get fastest node ehavior (#326)
This commit is contained in:
@ -171,10 +171,7 @@ func (r *Resolver) IsFakeIP() bool {
|
||||
}
|
||||
|
||||
func (r *Resolver) batchExchange(clients []resolver, m *D.Msg) (msg *D.Msg, err error) {
|
||||
ctx, cancel := context.WithTimeout(context.Background(), time.Second)
|
||||
defer cancel()
|
||||
fast, ctx := picker.WithContext(ctx)
|
||||
|
||||
fast, ctx := picker.WithTimeout(context.Background(), time.Second)
|
||||
for _, client := range clients {
|
||||
r := client
|
||||
fast.Go(func() (interface{}, error) {
|
||||
|
Reference in New Issue
Block a user