This commit is contained in:
aozhiwei 2024-11-05 14:57:40 +08:00
parent 8bf608e858
commit 1f0fcc3c0b
3 changed files with 0 additions and 15 deletions

View File

@ -18,10 +18,6 @@ func (this *WheelServerCluster) Init1() {
} }
func (this *WheelServerClusterTable) GetListenPort() int32 {
return this.selfConf.GetListenPort()
}
func (this *WheelServerClusterTable) GetHttpListenPort() int32 { func (this *WheelServerClusterTable) GetHttpListenPort() int32 {
return this.selfConf.GetHttpListenPort() return this.selfConf.GetHttpListenPort()
} }

View File

@ -6,7 +6,6 @@ import (
type WheelServerCluster struct { type WheelServerCluster struct {
instance_id int32 instance_id int32
listen_port int32
http_listen_port int32 http_listen_port int32
_flags1_ uint64 _flags1_ uint64
@ -45,14 +44,6 @@ func (this *WheelServerCluster) HasInstanceId() bool {
return (this._flags1_ & (uint64(1) << 1)) > 0 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 { func (this *WheelServerCluster) GetHttpListenPort() int32 {
return this.http_listen_port return this.http_listen_port
} }
@ -112,7 +103,6 @@ func (this *Web3ServiceCluster) HasUrl() bool {
func (this *WheelServerCluster) LoadFromKv(kv map[string]interface{}) { func (this *WheelServerCluster) LoadFromKv(kv map[string]interface{}) {
f5.ReadMetaTableField(&this.instance_id, "instance_id", &this._flags1_, 1, kv) 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) f5.ReadMetaTableField(&this.http_listen_port, "http_listen_port", &this._flags1_, 3, kv)
} }

View File

@ -5,7 +5,6 @@ option go_package = ".;mt";
message WheelServerCluster message WheelServerCluster
{ {
optional int32 instance_id = 1; optional int32 instance_id = 1;
optional int32 listen_port = 2;
optional int32 http_listen_port = 3; optional int32 http_listen_port = 3;
} }