Skip to content

Commit

Permalink
First of all readConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Castell committed May 22, 2015
1 parent 50ce4b9 commit bf12b0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dcron/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ func (s *ServerCommand) readConfig(args []string) *Config {
func (s *ServerCommand) Run(args []string) int {
var wg sync.WaitGroup

s.etcd = NewEtcdClient(s.config.EtcdMachines)
s.config = s.readConfig(args)
s.serf = NewSerfManager(s.config)
s.etcd = NewEtcdClient(s.config.EtcdMachines)

wg.Add(1)
go func() {
Expand Down

0 comments on commit bf12b0a

Please sign in to comment.