mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-12-23 07:35:39 +00:00
Fix more codefactor suggestions
This commit is contained in:
parent
991ea8b876
commit
490c11c29e
@ -251,16 +251,14 @@ func (l *links) add(u *url.URL, sintf string, linkType linkType) error {
|
|||||||
// the next connection.
|
// the next connection.
|
||||||
if backoffNow() {
|
if backoffNow() {
|
||||||
continue
|
continue
|
||||||
} else {
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
// Ephemeral and incoming connections don't remain
|
// Ephemeral and incoming connections don't remain
|
||||||
// after a connection failure, so exit out of the
|
// after a connection failure, so exit out of the
|
||||||
// loop and clean up the link entry.
|
// loop and clean up the link entry.
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// The linkConn wrapper allows us to track the number of
|
// The linkConn wrapper allows us to track the number of
|
||||||
// bytes written to and read from this connection without
|
// bytes written to and read from this connection without
|
||||||
@ -310,9 +308,8 @@ func (l *links) add(u *url.URL, sintf string, linkType linkType) error {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
} else {
|
|
||||||
break
|
|
||||||
}
|
}
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user