Skip to content

Instantly share code, notes, and snippets.

@leonardoo
Created September 14, 2017 15:57
Show Gist options
  • Save leonardoo/2cc8117d4daf0dc57649985a2a3ef204 to your computer and use it in GitHub Desktop.
Save leonardoo/2cc8117d4daf0dc57649985a2a3ef204 to your computer and use it in GitHub Desktop.
pull.go
for offset < count {
for i, _ := range []int{1, 2} {
new_offset := offset + (limit * i)
go doRequest(hostConn, sess, params, clientID, importLog, new_offset, limit, urls, &wg)
}
wg.Wait()
offset = offset + (limit * 2)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment