-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
swarm: record conn metrics only once
This causes discrepancy when the connection is closed before being added to the swarm. This happens only in dial_worker loop when adding to the swarm fails. It's nicer to fix this with a once than to ensure that Close is never called twice within the swarm.
- Loading branch information
Showing
1 changed file
with
13 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters