Groups
Groups
Sign in
Groups
Groups
golang-nuts
Conversations
About
Send feedback
Help
why is wait group necessary in streaming post request to elasticsearch
34 views
Skip to first unread message
Alexander Mills
unread,
Sep 10, 2020, 1:49:32 PM
9/10/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang-nuts
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.
Reply all
Reply to author
Forward
0 new messages