feat(dataproxy): set flush interval, need a setting for this

This commit is contained in:
Torkel Ödegaard 2016-03-19 11:09:26 +01:00
parent 1ccde201be
commit e63ff1c762

View File

@ -61,7 +61,7 @@ func NewReverseProxy(ds *m.DataSource, proxyPath string, targetUrl *url.URL) *ht
req.Header.Del("Set-Cookie")
}
return &httputil.ReverseProxy{Director: director}
return &httputil.ReverseProxy{Director: director, FlushInterval: time.Millisecond * 200}
}
func getDatasource(id int64, orgId int64) (*m.DataSource, error) {