1
This commit is contained in:
parent
8bf608e858
commit
1f0fcc3c0b
@ -18,10 +18,6 @@ func (this *WheelServerCluster) Init1() {
|
||||
|
||||
}
|
||||
|
||||
func (this *WheelServerClusterTable) GetListenPort() int32 {
|
||||
return this.selfConf.GetListenPort()
|
||||
}
|
||||
|
||||
func (this *WheelServerClusterTable) GetHttpListenPort() int32 {
|
||||
return this.selfConf.GetHttpListenPort()
|
||||
}
|
||||
|
@ -6,7 +6,6 @@ import (
|
||||
|
||||
type WheelServerCluster struct {
|
||||
instance_id int32
|
||||
listen_port int32
|
||||
http_listen_port int32
|
||||
|
||||
_flags1_ uint64
|
||||
@ -45,14 +44,6 @@ func (this *WheelServerCluster) HasInstanceId() bool {
|
||||
return (this._flags1_ & (uint64(1) << 1)) > 0
|
||||
}
|
||||
|
||||
func (this *WheelServerCluster) GetListenPort() int32 {
|
||||
return this.listen_port
|
||||
}
|
||||
|
||||
func (this *WheelServerCluster) HasListenPort() bool {
|
||||
return (this._flags1_ & (uint64(1) << 2)) > 0
|
||||
}
|
||||
|
||||
func (this *WheelServerCluster) GetHttpListenPort() int32 {
|
||||
return this.http_listen_port
|
||||
}
|
||||
@ -112,7 +103,6 @@ func (this *Web3ServiceCluster) HasUrl() bool {
|
||||
|
||||
func (this *WheelServerCluster) LoadFromKv(kv map[string]interface{}) {
|
||||
f5.ReadMetaTableField(&this.instance_id, "instance_id", &this._flags1_, 1, kv)
|
||||
f5.ReadMetaTableField(&this.listen_port, "listen_port", &this._flags1_, 2, kv)
|
||||
f5.ReadMetaTableField(&this.http_listen_port, "http_listen_port", &this._flags1_, 3, kv)
|
||||
}
|
||||
|
||||
|
@ -5,7 +5,6 @@ option go_package = ".;mt";
|
||||
message WheelServerCluster
|
||||
{
|
||||
optional int32 instance_id = 1;
|
||||
optional int32 listen_port = 2;
|
||||
optional int32 http_listen_port = 3;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user