Skip to content

Commit

Permalink
default rpc port and format
Browse files Browse the repository at this point in the history
  • Loading branch information
ivcosla committed Mar 6, 2019
1 parent 3704ab9 commit a99962f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion cmd/skywire-cli/commands/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var rootCmd = &cobra.Command{

// Execute executes root CLI command.
func Execute() {
rootCmd.PersistentFlags().StringVarP(&rpcAddr, "rpc", "", "localhost:3436", "RPC server address")
rootCmd.PersistentFlags().StringVarP(&rpcAddr, "rpc", "", "localhost:3435", "RPC server address")

if err := rootCmd.Execute(); err != nil {
fmt.Println(err)
Expand Down
19 changes: 9 additions & 10 deletions pkg/messaging/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var (

type clientLink struct {
link *Link
addr string
addr string
chans *chanList
}

Expand All @@ -48,7 +48,6 @@ type Config struct {
RetryDelay time.Duration
}


// Client sends messages to remote client nodes via relay Server.
type Client struct {
Logger *logging.Logger
Expand All @@ -71,15 +70,15 @@ type Client struct {
// NewClient constructs a new Client.
func NewClient(conf *Config) *Client {
c := &Client{
Logger: logging.MustGetLogger("messenger"),
pubKey: conf.PubKey,
secKey: conf.SecKey,
dc: conf.Discovery,
retries: conf.Retries,
Logger: logging.MustGetLogger("messenger"),
pubKey: conf.PubKey,
secKey: conf.SecKey,
dc: conf.Discovery,
retries: conf.Retries,
retryDelay: conf.RetryDelay,
links: make(map[cipher.PubKey]*clientLink),
newChan: make(chan *channel),
doneChan: make(chan struct{}),
links: make(map[cipher.PubKey]*clientLink),
newChan: make(chan *channel),
doneChan: make(chan struct{}),
}
config := &LinkConfig{
Public: c.pubKey,
Expand Down
3 changes: 2 additions & 1 deletion pkg/node/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ package node
import (
"errors"
"fmt"
"github.com/skycoin/skywire/pkg/messaging"
"os"
"path/filepath"
"time"

"github.com/skycoin/skywire/pkg/messaging"

"github.com/skycoin/skywire/pkg/cipher"
mClient "github.com/skycoin/skywire/pkg/messaging-discovery/client"
"github.com/skycoin/skywire/pkg/routing"
Expand Down

0 comments on commit a99962f

Please sign in to comment.