I am trying to figure out why the wg is seemingly necessary as part of this 
code to stream JSON to a post request to ElasticSearch:

https://gist.github.com/ORESoftware/06341057ca39e1b2a47dc8a8e4e4b55f

Any tips appreciated. If the waitgroup is not used, it doesn't appear to 
wait until the full request body is received? Not sure.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/6d7974ce-8c83-45b6-a5c7-10a2d9185bdbn%40googlegroups.com.

Reply via email to