aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/swarm/swarm-smoke/sliding_window.go
diff options
context:
space:
mode:
authorAnton Evangelatov <anton.evangelatov@gmail.com>2019-04-11 16:26:52 +0800
committerAnton Evangelatov <anton.evangelatov@gmail.com>2019-05-10 18:26:30 +0800
commit993b145f25845e50e8af41ffb1116eaee381d693 (patch)
tree47a88eec27f66b7237512c862d7ab2f8e9f314d3 /cmd/swarm/swarm-smoke/sliding_window.go
parent996755c4a832afce8629a771cab8879c88c98355 (diff)
downloadgo-tangerine-993b145f25845e50e8af41ffb1116eaee381d693.tar
go-tangerine-993b145f25845e50e8af41ffb1116eaee381d693.tar.gz
go-tangerine-993b145f25845e50e8af41ffb1116eaee381d693.tar.bz2
go-tangerine-993b145f25845e50e8af41ffb1116eaee381d693.tar.lz
go-tangerine-993b145f25845e50e8af41ffb1116eaee381d693.tar.xz
go-tangerine-993b145f25845e50e8af41ffb1116eaee381d693.tar.zst
go-tangerine-993b145f25845e50e8af41ffb1116eaee381d693.zip
swarm/storage/localstore: fix export db.Put signature
cmd/swarm/swarm-smoke: improve smoke tests (#1337) swarm/network: remove dead code (#1339) swarm/network: remove FetchStore and SyncChunkStore in favor of NetStore (#1342)
Diffstat (limited to 'cmd/swarm/swarm-smoke/sliding_window.go')
-rw-r--r--cmd/swarm/swarm-smoke/sliding_window.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/cmd/swarm/swarm-smoke/sliding_window.go b/cmd/swarm/swarm-smoke/sliding_window.go
index d589124bd..ab082c543 100644
--- a/cmd/swarm/swarm-smoke/sliding_window.go
+++ b/cmd/swarm/swarm-smoke/sliding_window.go
@@ -35,11 +35,11 @@ type uploadResult struct {
digest []byte
}
-func slidingWindowCmd(ctx *cli.Context, tuid string) error {
+func slidingWindowCmd(ctx *cli.Context) error {
errc := make(chan error)
go func() {
- errc <- slidingWindow(ctx, tuid)
+ errc <- slidingWindow(ctx)
}()
err := <-errc
@@ -49,10 +49,10 @@ func slidingWindowCmd(ctx *cli.Context, tuid string) error {
return err
}
-func slidingWindow(ctx *cli.Context, tuid string) error {
+func slidingWindow(ctx *cli.Context) error {
var hashes []uploadResult //swarm hashes of the uploads
nodes := len(hosts)
- log.Info("sliding window test started", "tuid", tuid, "nodes", nodes, "filesize(kb)", filesize, "timeout", timeout)
+ log.Info("sliding window test started", "nodes", nodes, "filesize(kb)", filesize, "timeout", timeout)
uploadedBytes := 0
networkDepth := 0
errored := false
@@ -107,7 +107,7 @@ outer:
start = time.Now()
// fetch hangs when swarm dies out, so we have to jump through a bit more hoops to actually
// catch the timeout, but also allow this retry logic
- err := fetch(v.hash, httpEndpoint(hosts[idx]), v.digest, ruid, "")
+ err := fetch(v.hash, httpEndpoint(hosts[idx]), v.digest, ruid)
if err != nil {
log.Error("error fetching hash", "err", err)
continue