~egtann/lanhttp

3d0a36d422ec3e91780e98fd91e3f76394ef1918 — Evan Tann 11 months ago fc1b74b
fix goroutine leak
1 files changed, 1 insertions(+), 1 deletions(-)

M lanhttp.go
M lanhttp.go => lanhttp.go +1 -1
@@ 108,7 108,7 @@ func (c *Client) first(urls []string, timeout time.Duration) Routes {
	ctx, cancel := context.WithTimeout(context.Background(), timeout)
	defer cancel()

	ch := make(chan map[string][]string)
	ch := make(chan map[string][]string, len(urls))
	update := func(uri string) {
		req, err := http.NewRequestWithContext(ctx, "GET", uri, nil)
		if err != nil {