Commit e63ff1c7 by Torkel Ödegaard

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

parent 1ccde201
...@@ -61,7 +61,7 @@ func NewReverseProxy(ds *m.DataSource, proxyPath string, targetUrl *url.URL) *ht ...@@ -61,7 +61,7 @@ func NewReverseProxy(ds *m.DataSource, proxyPath string, targetUrl *url.URL) *ht
req.Header.Del("Set-Cookie") 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) { func getDatasource(id int64, orgId int64) (*m.DataSource, error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment