swarm-smoke: add syncDelay flag

swarm/network: add want delay timer to syncing (#1367)

swarm/network: synchronise peer.close() (#1369)
This commit is contained in:
Anton Evangelatov
2019-05-06 10:58:42 +02:00
parent ad6c39012f
commit 8802b9ce7f
5 changed files with 40 additions and 12 deletions

View File

@ -40,7 +40,7 @@ var (
allhosts string
hosts []string
filesize int
syncDelay int
syncDelay bool
inputSeed int
httpPort int
wsPort int
@ -87,10 +87,9 @@ func main() {
Usage: "file size for generated random file in KB",
Destination: &filesize,
},
cli.IntFlag{
cli.BoolFlag{
Name: "sync-delay",
Value: 5,
Usage: "duration of delay in seconds to wait for content to be synced",
Usage: "wait for content to be synced",
Destination: &syncDelay,
},
cli.IntFlag{