go fmt
This commit is contained in:
parent
cedcef032d
commit
b904f383c1
@ -4,8 +4,8 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/micro/go-micro/config/options"
|
"github.com/micro/go-micro/config/options"
|
||||||
"github.com/micro/go-micro/network/router"
|
|
||||||
"github.com/micro/go-micro/network/proxy"
|
"github.com/micro/go-micro/network/proxy"
|
||||||
|
"github.com/micro/go-micro/network/router"
|
||||||
)
|
)
|
||||||
|
|
||||||
type network struct {
|
type network struct {
|
||||||
@ -21,7 +21,7 @@ type network struct {
|
|||||||
id string
|
id string
|
||||||
|
|
||||||
// links maintained for this network
|
// links maintained for this network
|
||||||
mtx sync.RWMutex
|
mtx sync.RWMutex
|
||||||
links []Link
|
links []Link
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -32,14 +32,14 @@ type node struct {
|
|||||||
address string
|
address string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
type link struct {
|
type link struct {
|
||||||
// the embedded node
|
// the embedded node
|
||||||
*node
|
*node
|
||||||
|
|
||||||
// length and weight of the link
|
// length and weight of the link
|
||||||
mtx sync.RWMutex
|
mtx sync.RWMutex
|
||||||
length, weight int
|
length int
|
||||||
|
weight int
|
||||||
}
|
}
|
||||||
|
|
||||||
// network methods
|
// network methods
|
||||||
|
Loading…
x
Reference in New Issue
Block a user