Unverified Commit faa5c37c authored by Aarsh Shah's avatar Aarsh Shah Committed by GitHub

Discard http output (#156)

Co-authored-by: default avatarraulk <raul@protocol.ai>
parent 0f89d345
......@@ -359,15 +359,11 @@ func runRequestor(ctx context.Context, runenv *runtime.RunEnv, initCtx *run.Init
if runHTTPTest {
// request file directly over http
start = time.Now()
file, err := ioutil.TempFile(os.TempDir(), fmt.Sprintf("%s-", c.String()))
if err != nil {
panic(err)
}
resp, err := http.Get(fmt.Sprintf("http://%s:8080/%s", p.ip.String(), c.String()))
if err != nil {
panic(err)
}
bytesRead, err := io.Copy(file, resp.Body)
bytesRead, err := io.Copy(ioutil.Discard, resp.Body)
if err != nil {
panic(err)
}
......
......@@ -17,7 +17,7 @@ chunk_size = "20"
links_per_level = "1024"
raw_leaves = "true"
disk_store = "true"
memory_snapshots = "true"
memory_snapshots = "none"
[[groups]]
id = "providers"
......
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