refactor remove the extra function

This commit is contained in:
Xiang Li
2013-10-13 22:13:20 -07:00
parent 2b291aabea
commit a635f6b17c
4 changed files with 14 additions and 41 deletions

View File

@@ -45,7 +45,7 @@ func (c *JoinCommand) Apply(server *raft.Server) (interface{}, error) {
ps.registry.Invalidate(c.Name)
// Check if the join command is from a previous machine, who lost all its previous log.
if _, ok := ps.registry.URL(c.Name); ok {
if _, ok := ps.registry.ClientURL(c.Name); ok {
return b, nil
}