cmd/swarm/swarm-smoke-pss: remove wsHosts func because it's used only in one place

This commit is contained in:
Rafael Matias 2019-04-09 10:44:12 +02:00
parent f68b8a10c1
commit 38ec61dd1b
No known key found for this signature in database
GPG key ID: 1BC39532FB4A2DBD
2 changed files with 1 additions and 5 deletions

View file

@ -154,7 +154,7 @@ func pssSetup() *pssSession {
// set up the necessary info for each pss node
for i, host := range hosts {
wsHost := wsEndpoint(host)
wsHost := fmt.Sprintf("ws://%s:%d", host, wsPort)
rpcClient, err := rpc.Dial(wsHost)
if err != nil {

View file

@ -33,10 +33,6 @@ var (
seed = int(time.Now().UTC().UnixNano())
)
func wsEndpoint(host string) string {
return fmt.Sprintf("ws://%s:%d", host, wsPort)
}
func wrapCliCommand(name string, command func(*cli.Context) error) func(*cli.Context) error {
return func(ctx *cli.Context) error {
log.PrintOrigins(true)