aboutsummaryrefslogtreecommitdiff
path: root/go/topology/data_node.go
diff options
context:
space:
mode:
authorchrislusf <chris.lu@gmail.com>2015-03-09 01:10:01 -0700
committerchrislusf <chris.lu@gmail.com>2015-03-09 01:10:04 -0700
commitf511b507a5230e931d0250b446f744073be879b3 (patch)
treee9728b47902fc4f31aa93d24a937cb2654becc6c /go/topology/data_node.go
parentd48d76cb4f419a58539fb84c7a45c7eb863b854f (diff)
downloadseaweedfs-f511b507a5230e931d0250b446f744073be879b3.tar.xz
seaweedfs-f511b507a5230e931d0250b446f744073be879b3.zip
Add read only public port on volume server
Add read only public port on volume server
Diffstat (limited to 'go/topology/data_node.go')
-rw-r--r--go/topology/data_node.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/go/topology/data_node.go b/go/topology/data_node.go
index e0d12cbcc..27461945b 100644
--- a/go/topology/data_node.go
+++ b/go/topology/data_node.go
@@ -13,7 +13,6 @@ type DataNode struct {
volumes map[storage.VolumeId]storage.VolumeInfo
Ip string
Port int
- AdminPort int
PublicUrl string
LastSeen int64 // unix time in seconds
Dead bool
@@ -90,10 +89,6 @@ func (dn *DataNode) Url() string {
return dn.Ip + ":" + strconv.Itoa(dn.Port)
}
-func (dn *DataNode) AdminUrl() string {
- return dn.Ip + ":" + strconv.Itoa(dn.AdminPort)
-}
-
func (dn *DataNode) ToMap() interface{} {
ret := make(map[string]interface{})
ret["Url"] = dn.Url()
@@ -101,6 +96,5 @@ func (dn *DataNode) ToMap() interface{} {
ret["Max"] = dn.GetMaxVolumeCount()
ret["Free"] = dn.FreeSpace()
ret["PublicUrl"] = dn.PublicUrl
- ret["AdminUrl"] = dn.AdminUrl()
return ret
}