Ammar Bandukwala

Results 163 comments of Ammar Bandukwala

I want to check the condition after each iteration. I couldn't find a more idiomatic way to accomplish that.

seems like the loop you described is exactly what math.Rand does, I'll refactor next time I have a little bit of time. Thanks.

Could you give me an example of an IP that break?

Where exactly are you seeing the delay? The only thing I could think of that could cause that is a deferred statement, but the only thing deferred is a mutex...

If this is occuring on LookupIPs, I think you must be experiencing some sort of rate limit. We set the WriteDeadline dynamically based on the number of requested IPs.

I like the counter idea, but I think it would just have to be a set (`map[string]struct{}`)

Due to GitHub's camo proxy it can't get the the user's IP from the image.

![Screen Shot 2020-04-23 at 1 48 44 PM](https://user-images.githubusercontent.com/7416144/80137723-54dc3780-8569-11ea-8758-9d504471d8a4.png) All I see is the one.

host network is used for best interop with current developer workflow. E.g devs can still access their webapp on localhost, and don't have to finagle with port mappings.