Skip to content

Commit

Permalink
Removed RPCAddr option
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Castell committed May 27, 2015
1 parent f7e1f1a commit 37a2a31
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
3 changes: 0 additions & 3 deletions dcron/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ func (a *AgentCommand) readConfig(args []string) *Config {
viper.SetDefault("node_name", cmdFlags.Lookup("node").Value)
cmdFlags.String("bind", "0.0.0.0:7946", "address to bind listeners to")
viper.SetDefault("bind_addr", cmdFlags.Lookup("bind").Value)
cmdFlags.String("rpc-addr", "127.0.0.1:7373", "RPC address")
viper.SetDefault("rpc_addr", cmdFlags.Lookup("rpc-addr").Value)
cmdFlags.String("http-addr", ":8080", "HTTP address")
viper.SetDefault("http_addr", cmdFlags.Lookup("http-addr").Value)
cmdFlags.String("discover", "dcron", "mDNS discovery name")
Expand All @@ -72,7 +70,6 @@ func (a *AgentCommand) readConfig(args []string) *Config {
config := &Config{
NodeName: viper.GetString("node_name"),
BindAddr: viper.GetString("bind_addr"),
RPCAddr: viper.GetString("rpc_addr"),
HTTPAddr: viper.GetString("http_addr"),
Discover: viper.GetString("discover"),
EtcdMachines: viper.GetStringSlice("etcd_machines"),
Expand Down
2 changes: 0 additions & 2 deletions dcron/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@ import (
)

type Config struct {
RPCAddr string
NodeName string
BindAddr string
HTTPAddr string
Discover string
JoinAddrs []string
EtcdMachines []string
Profile string
Interface string
Expand Down

0 comments on commit 37a2a31

Please sign in to comment.