Fixing a Bug where Multiple Active Connections are being waited on #14

Merged
dan merged 1 commits from bugfix into master 2020-03-20 00:23:31 +00:00
Owner
No description provided.
dan was assigned by sarah 2020-03-20 00:06:35 +00:00
Owner

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 getting

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 getting
Author
Owner

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 getting

The 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)

> 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 getting The 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)
dan closed this pull request 2020-03-20 00:23:31 +00:00
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: cwtch.im/tapir#14
No description provided.