Fixing a Bug where Multiple Active Connections are being waited on #14
Loading…
Reference in New Issue
No description provided.
Delete Branch "bugfix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
the sleep should go inside the
if err != nil
as there's no reason to sleep before get if there's no err and we're not gettingThe sleep is to prevent spinlocking so we don't just burn processor time continually checking for a capability, we wait a little bit and then try again (as a bonus it prevents us from continually calling GetConnection which is expensive but that isn't the main point)