diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-10-19 19:40:43 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-11-21 21:09:32 +0800 |
commit | 7b258c96816df56e642df7e314e8052213af70fa (patch) | |
tree | 12de1da624d8e540a9f7bbf345a6a4ea15559973 /cmd/puppeth/wizard.go | |
parent | 8c78449a9ef8f2a77cc1ff94f9a0a3178af21408 (diff) | |
download | dexon-7b258c96816df56e642df7e314e8052213af70fa.tar.gz dexon-7b258c96816df56e642df7e314e8052213af70fa.tar.zst dexon-7b258c96816df56e642df7e314e8052213af70fa.zip |
cmd/puppeth: concurrent server dials and health checks
Diffstat (limited to 'cmd/puppeth/wizard.go')
-rw-r--r-- | cmd/puppeth/wizard.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/puppeth/wizard.go b/cmd/puppeth/wizard.go index eb6d9e5aa..e554dbd13 100644 --- a/cmd/puppeth/wizard.go +++ b/cmd/puppeth/wizard.go @@ -28,6 +28,7 @@ import ( "sort" "strconv" "strings" + "sync" "github.com/ethereum/go-ethereum/common" "github.com/ethereum/go-ethereum/core" @@ -75,7 +76,8 @@ type wizard struct { servers map[string]*sshClient // SSH connections to servers to administer services map[string][]string // Ethereum services known to be running on servers - in *bufio.Reader // Wrapper around stdin to allow reading user input + in *bufio.Reader // Wrapper around stdin to allow reading user input + lock sync.Mutex // Lock to protect configs during concurrent service discovery } // read reads a single line from stdin, trimming if from spaces. |