mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
cmd/swarm/swarm-smoke-pss: remove wsHosts func because it's used only in one place
This commit is contained in:
parent
f68b8a10c1
commit
38ec61dd1b
2 changed files with 1 additions and 5 deletions
|
|
@ -154,7 +154,7 @@ func pssSetup() *pssSession {
|
||||||
|
|
||||||
// set up the necessary info for each pss node
|
// set up the necessary info for each pss node
|
||||||
for i, host := range hosts {
|
for i, host := range hosts {
|
||||||
wsHost := wsEndpoint(host)
|
wsHost := fmt.Sprintf("ws://%s:%d", host, wsPort)
|
||||||
|
|
||||||
rpcClient, err := rpc.Dial(wsHost)
|
rpcClient, err := rpc.Dial(wsHost)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
|
|
@ -33,10 +33,6 @@ var (
|
||||||
seed = int(time.Now().UTC().UnixNano())
|
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 {
|
func wrapCliCommand(name string, command func(*cli.Context) error) func(*cli.Context) error {
|
||||||
return func(ctx *cli.Context) error {
|
return func(ctx *cli.Context) error {
|
||||||
log.PrintOrigins(true)
|
log.PrintOrigins(true)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue