mazing80
mazing80
Yes, like below. ``` go ================== WARNING: DATA RACE Write by goroutine 30: my.corp.com/me/log-server.git/vendor/github.com/mattbaird/elastigo/lib.(*BulkIndexer).startDocChannel.func1() /Users/me/Golang/src/my.corp.com/me/log-server.git/vendor/github.com/mattbaird/elastigo/lib/corebulk.go:250 +0x12a Previous read by goroutine 14: my.corp.com/me/log-server.git/storage/es.PendingChecker.func1() /Users/me/Golang/src/my.corp.com/me/log-server.git/storage/es/client.go:81 +0x2a4 Goroutine 30 (running) created at: my.corp.com/me/log-server.git/vendor/github.com/mattbaird/elastigo/lib.(*BulkIndexer).startDocChannel()...
And this is my simple client code. If I wrong, please tell me. ``` go import ( "sync" "time" "log" elastigo "github.com/mattbaird/elastigo/lib" ) const ( DefaultHost = "localhost:0092" // max...
Thank you. I will test again. :)