Update fluent-logger-golang to v1.2.1

This fixes a regression bug not to connect the destination node twice or more.
That regression was brought by v1.2.0, and it also makes many goroutines for
first reconnection (these will finish after first reconnection established).

Signed-off-by: Satoshi Tagomori <tagomoris@gmail.com>
This commit is contained in:
Satoshi Tagomori 2016-10-18 10:55:30 +09:00
parent cd0e399e06
commit 53ed17449e
3 changed files with 4 additions and 4 deletions

View file

@ -118,7 +118,7 @@ clone git github.com/golang/protobuf 1f49d83d9aa00e6ce4fc8258c71cc7786aec968a
# gelf logging driver deps
clone git github.com/Graylog2/go-gelf aab2f594e4585d43468ac57287b0dece9d806883
clone git github.com/fluent/fluent-logger-golang v1.2.0
clone git github.com/fluent/fluent-logger-golang v1.2.1
# fluent-logger-golang deps
clone git github.com/philhofer/fwd 899e4efba8eaa1fea74175308f3fae18ff3319fa
clone git github.com/tinylib/msgp 75ee40d2601edf122ef667e2a07d600d4c44490c

View file

@ -78,7 +78,7 @@ func New(config Config) (f *Fluent, err error) {
}
if config.AsyncConnect {
f = &Fluent{Config: config, reconnecting: true}
f.reconnect()
go f.reconnect()
} else {
f = &Fluent{Config: config, reconnecting: false}
err = f.connect()
@ -254,7 +254,7 @@ func (f *Fluent) connect() (err error) {
err = net.UnknownNetworkError(f.Config.FluentNetwork)
}
if err != nil {
if err == nil {
f.reconnecting = false
}
return

View file

@ -1,3 +1,3 @@
package fluent
const Version = "1.1.0"
const Version = "1.2.1"