Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-graphsync
Commits
faa5c37c
Unverified
Commit
faa5c37c
authored
Mar 05, 2021
by
Aarsh Shah
Committed by
GitHub
Mar 04, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Discard http output (#156)
Co-authored-by:
raulk
<
raul@protocol.ai
>
parent
0f89d345
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
testplans/graphsync/main.go
testplans/graphsync/main.go
+1
-5
testplans/graphsync/stress.toml
testplans/graphsync/stress.toml
+1
-1
No files found.
testplans/graphsync/main.go
View file @
faa5c37c
...
...
@@ -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
)
}
...
...
testplans/graphsync/stress.toml
View file @
faa5c37c
...
...
@@ -17,7 +17,7 @@ chunk_size = "20"
links_per_level
=
"1024"
raw_leaves
=
"true"
disk_store
=
"true"
memory_snapshots
=
"
tru
e"
memory_snapshots
=
"
non
e"
[[groups]]
id
=
"providers"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment