Changed names of some variables.

This commit is contained in:
Milos Gajdos
2019-10-09 19:08:24 +01:00
parent d5ce96da24
commit 7a4bff4e9f
3 changed files with 19 additions and 16 deletions

View File

@@ -143,19 +143,19 @@ type Advert struct {
type Strategy int
const (
// All advertises all routes to the network
All Strategy = iota
// Optimal advertises optimal routes to the network
Optimal
// AdvertiseAll advertises all routes to the network
AdvertiseAll Strategy = iota
// AdvertiseBest advertises optimal routes to the network
AdvertiseBest
)
// String returns human readable Strategy
func (s Strategy) String() string {
switch s {
case All:
case AdvertiseAll:
return "all"
case Optimal:
return "optimal"
case AdvertiseBest:
return "best"
default:
return "unknown"
}