Closed jpiper closed 1 year ago
Thanks! Any way we can accomplish this without using golang.org/x/sync
? I know that library has had some security issues in the past, and I've been trying really hard to keep gofish from needing to pull in any extra dependencies.
yes I can rewrite this using a simple channel, I'll do that now for you
I think that does the trick
This allows the concurrency of HTTP client to be configured (it is 1 by default in order to maintain the existing behaviour). This also has the added benefit that a context cancellation will abort the lock acquisition