Skip to content

Commit

Permalink
collector: Initialize map
Browse files Browse the repository at this point in the history
  • Loading branch information
corny committed Oct 17, 2017
1 parent fd3f9e7 commit 98a8faf
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions respond/collector.go
Expand Up @@ -31,10 +31,11 @@ type Collector struct {
func NewCollector(db database.Connection, nodes *runtime.Nodes, ifaces []string, port int) *Collector {

coll := &Collector{
db: db,
nodes: nodes,
queue: make(chan *Response, 400),
stop: make(chan interface{}),
db: db,
nodes: nodes,
queue: make(chan *Response, 400),
stop: make(chan interface{}),
ifaceToConn: make(map[string]*net.UDPConn),
}

for _, iface := range ifaces {
Expand Down

0 comments on commit 98a8faf

Please sign in to comment.