buffersize

This commit is contained in:
Martin Geno 2016-02-19 14:25:11 +01:00
parent 65bc932c99
commit ae28b90a5e

View File

@ -48,7 +48,7 @@ func NewCollector(collectType string) *Collector {
collector := &Collector{ collector := &Collector{
collectType: collectType, collectType: collectType,
connection: conn, connection: conn,
queue: make(chan *Response, 100), queue: make(chan *Response, 400),
} }
go collector.sendOnce() go collector.sendOnce()
@ -116,7 +116,6 @@ func (coll *Collector) parse(res *Response) {
if !reflect.DeepEqual(field,result){ if !reflect.DeepEqual(field,result){
nodeserver.SendAll(node) nodeserver.SendAll(node)
log.Println("get a node update")
} }
field.Set(reflect.ValueOf(result)) field.Set(reflect.ValueOf(result))