cmd/swarm: fix appveyor build (#17808)

This commit is contained in:
Elad
2018-10-02 14:59:58 +02:00
committed by Anton Evangelatov
parent 26a37c5351
commit bd1f7ebda2
3 changed files with 24 additions and 7 deletions

View File

@ -19,6 +19,7 @@ package main
import (
"context"
"crypto/ecdsa"
"flag"
"fmt"
"io/ioutil"
"net"
@ -41,6 +42,8 @@ import (
"github.com/ethereum/go-ethereum/swarm"
)
var loglevel = flag.Int("loglevel", 3, "verbosity of logs")
func init() {
// Run the app if we've been exec'd as "swarm-test" in runSwarm.
reexec.Register("swarm-test", func() {