Add default dialer #8
No reviewers
Labels
No labels
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/multinet#8
Loading…
Reference in a new issue
No description provided.
Delete branch "dstepanov-yadro/multinet:feat/default_dialer"
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?
Add default dialer to substitute
net.Dial
.Closes #3
@ -0,0 +14,4 @@
func init() {
var err error
defaultDialer, err = NewDialer(Config{
Balancer: BalancerTypeRoundRobin,
It looks like if balancer will be
noop
then there is no difference withnet.Dial
@ -0,0 +15,4 @@
var err error
defaultDialer, err = NewDialer(Config{
Balancer: BalancerTypeRoundRobin,
Subnets: []string{"0.0.0.0/0", "0000:0000:0000:0000:0000:0000:0000:0000/0"},
Does
::/0
or::0/0
work?yes, fixed
@ -0,0 +9,4 @@
)
func TestDefaultDialer(t *testing.T) {
conn, err := Dial("tcp", "s01.frostfs.devenv:8080")
We add devenv requirement to the integration, how setting up a small server in tests?
fixed
@ -0,0 +22,4 @@
}
}
// Dial dials provided network and address using defaule dialer.
s/defaule/default/
fixed
4159d54f64
to70349432df
@ -0,0 +16,4 @@
conn, err := Dial("tcp", "localhost:8080")
require.NoError(t, err)
if err == nil {
err
is alreadynil
if it has just passedrequire.NoError(t, err)
?Fixed
70349432df
to76e736f572