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