Skip to content

Commit

Permalink
feat(dataproxy): set flush interval, need a setting for this
Browse files Browse the repository at this point in the history
  • Loading branch information
torkelo committed Mar 19, 2016
1 parent 1ccde20 commit e63ff1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/dataproxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e63ff1c

Please sign in to comment.