-
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.
* Always send the correct observed addr for the connection being identified. * Always send the correct addresses for the connection being identified. * Avoid extra work when the remote peer doesn't support identify delta. * Instead of applying delta locally, just update the snapshot with the new protocols. * Always access the snapshot under a lock and get rid of the test channel. This doesn't cost us in terms of performance and makes the system easier to reason about.
- Loading branch information
1 parent
e1680c2
commit 355fd08
Showing
4 changed files
with
84 additions
and
118 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -490,8 +490,6 @@ func TestIdentifyDeltaOnProtocolChange(t *testing.T) { | |
lk.Unlock() | ||
} | ||
} | ||
|
||
close(done) | ||
}() | ||
|
||
<-done | ||
|
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
Oops, something went wrong.