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