diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 4b562afa3..7f17307d8 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -9,7 +9,6 @@ Adam Alix [@adamalix](https://github.com/adamalix) Adam Weiner [@adamweiner](https://github.com/adamweiner) Alexey Sharov [@nizsheanez](https://github.com/nizsheanez) -Anthony Atkinson [@sha1sum](https://github.com/sha1sum) Benjamin Zarzycki [@kf6nux](https://github.com/kf6nux) Braden Bassingthwaite [@bbassingthwaite-va](https://github.com/bbassingthwaite-va) Brady Love [@bradylove](https://github.com/bradylove) @@ -23,7 +22,6 @@ Daniel Heckrath [@DanielHeckrath](https://github.com/DanielHeckrath) Daniel Imfeld [@dimfeld](https://github.com/dimfeld) Dwayne Schultz [@myshkin5](https://github.com/myshkin5) Faolan C-P [@fcheslack](https://github.com/fcheslack) -Felipe Cavalcanti [@felipejfc](https://github.com/felipejfc) Gerhard Häring [@ghaering](https://github.com/ghaering) Guilherme Silveira [@guilherme-santos](https://github.com/guilherme-santos) Guillaume J. Charmes [@creack](https://github.com/creack) @@ -32,6 +30,7 @@ Harrison Wright [@wright8191](https://github.com/wright8191) Igor Dubinskiy [@idubinskiy](https://github.com/idubinskiy) Isaac Saldana [@isaldana](https://github.com/isaldana) Jack Lindamood [@cep21](https://github.com/cep21) +Jayme Rotsaert [@jrots](https://github.com/jrots) Joe Buck [@four2five](https://github.com/four2five) John Barker [@j16r](https://github.com/j16r) John Goodall [@jgoodall](https://github.com/jgoodall) diff --git a/client.go b/client.go index 5dd6c101f..70d62f0ee 100644 --- a/client.go +++ b/client.go @@ -21,7 +21,7 @@ import ( const ( // Version is the current version of Elastic. - Version = "2.0.50" + Version = "2.0.51" // DefaultUrl is the default endpoint of Elasticsearch on the local machine. // It is used e.g. when initializing a new Client without a specific URL. @@ -645,9 +645,10 @@ func (c *Client) dumpResponse(resp *http.Response) { func (c *Client) sniffer() { c.mu.RLock() timeout := c.snifferTimeout + interval := c.snifferInterval c.mu.RUnlock() - ticker := time.NewTicker(timeout) + ticker := time.NewTicker(interval) defer ticker.Stop() for {