mirror of
https://github.com/go-micro/go-micro.git
synced 2025-08-10 21:52:01 +02:00
add comment to tunnel link selection
This commit is contained in:
@@ -856,6 +856,8 @@ func (t *tun) Dial(channel string, opts ...DialOption) (Session, error) {
|
|||||||
t.RUnlock()
|
t.RUnlock()
|
||||||
|
|
||||||
// discovered so set the link
|
// discovered so set the link
|
||||||
|
// TODO: pick the link efficiently based
|
||||||
|
// on link status and saturation.
|
||||||
if c.discovered {
|
if c.discovered {
|
||||||
// set the link
|
// set the link
|
||||||
i := rand.Intn(len(links))
|
i := rand.Intn(len(links))
|
||||||
|
Reference in New Issue
Block a user