url error

This commit is contained in:
Chris Lu 2012-09-26 02:02:15 -07:00
parent 7ee12f14a8
commit d63c5231ac

View file

@ -45,7 +45,7 @@ func (dn *DataNode) MatchLocation(ip string, port int) bool {
return dn.Ip == ip && dn.Port == port
}
func (dn *DataNode) Url() string {
return dn.Ip + strconv.Itoa(dn.Port)
return dn.Ip + ":" + strconv.Itoa(dn.Port)
}
func (dn *DataNode) ToMap() interface{} {