cosmetic: yet more linter happiness

This commit is contained in:
Matthias Radestock committed 2015-05-27 16:56:38 +01:00
1 parent c6604a6442
commit 68ef0e845a
2 files changed
+5 -5

No files matched your search

+4 -4
View File
@@ -19,7 +19,7 @@ const macMaxAge = 10 * time.Minute // [1]
type LogFrameFunc func(string, []byte, *layers.Ethernet)
type RouterConfig struct {
type Config struct {
Port int
Iface *net.Interface
Password []byte
@@ -29,7 +29,7 @@ type RouterConfig struct {
}
type Router struct {
RouterConfig
Config
Ourself *LocalPeer
Macs *MacCache
Peers *Peers
@@ -53,8 +53,8 @@ type PacketSourceSink interface {
PacketSink
}
func NewRouter(config RouterConfig, name PeerName, nickName string) *Router {
router := &Router{RouterConfig: config, GossipChannels: make(GossipChannels)}
func NewRouter(config Config, name PeerName, nickName string) *Router {
router := &Router{Config: config, GossipChannels: make(GossipChannels)}
onMacExpiry := func(mac net.HardwareAddr, peer *Peer) {
log.Println("Expired MAC", mac, "at", peer)
}
+1 -1
View File
@@ -37,7 +37,7 @@ func main() {
runtime.GOMAXPROCS(procs)
var (
config weave.RouterConfig
config weave.Config
justVersion bool
ifaceName string
routerName string