Explorar el Código

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

Torkel Ödegaard hace 9 años
padre
commit
e63ff1c762
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      pkg/api/dataproxy.go

+ 1 - 1
pkg/api/dataproxy.go

@@ -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) {