From 63cc79efa525650e8300fdf2a57416f009774b8a Mon Sep 17 00:00:00 2001 From: ftljk <2510317228@qq.com> Date: Mon, 15 Sep 2025 11:44:27 +0800 Subject: [PATCH 1/5] add tcp and quic port Signed-off-by: ftljk <2510317228@qq.com> --- scheduler/resource/persistentcache/host.go | 6 ++++++ scheduler/resource/standard/host.go | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/scheduler/resource/persistentcache/host.go b/scheduler/resource/persistentcache/host.go index 5a10aadb892..595a46b5a49 100644 --- a/scheduler/resource/persistentcache/host.go +++ b/scheduler/resource/persistentcache/host.go @@ -40,6 +40,12 @@ type Host struct { // Port is grpc service port. Port int32 + // Port is tcp service port. + TcpPort int32 + + // Port is quic service port. + QuicPort int32 + // DownloadPort is piece downloading port. DownloadPort int32 diff --git a/scheduler/resource/standard/host.go b/scheduler/resource/standard/host.go index d9913bf7ec7..529a4a37797 100644 --- a/scheduler/resource/standard/host.go +++ b/scheduler/resource/standard/host.go @@ -153,6 +153,12 @@ type Host struct { // Port is grpc service port. Port int32 + // Port is tcp service port. + TcpPort int32 + + // Port is quic service port. + QuicPort int32 + // DownloadPort is piece downloading port. DownloadPort int32 From 8349e68be83810a9f0edc4e502a84116dc430597 Mon Sep 17 00:00:00 2001 From: ftljk <2510317228@qq.com> Date: Mon, 15 Sep 2025 11:54:25 +0800 Subject: [PATCH 2/5] fix tcp and quic port name Signed-off-by: ftljk <2510317228@qq.com> --- scheduler/resource/persistentcache/host.go | 4 ++-- scheduler/resource/standard/host.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scheduler/resource/persistentcache/host.go b/scheduler/resource/persistentcache/host.go index 595a46b5a49..4819107ac7c 100644 --- a/scheduler/resource/persistentcache/host.go +++ b/scheduler/resource/persistentcache/host.go @@ -41,10 +41,10 @@ type Host struct { Port int32 // Port is tcp service port. - TcpPort int32 + TCPPort int32 // Port is quic service port. - QuicPort int32 + QUICPort int32 // DownloadPort is piece downloading port. DownloadPort int32 diff --git a/scheduler/resource/standard/host.go b/scheduler/resource/standard/host.go index 529a4a37797..6c74f74a403 100644 --- a/scheduler/resource/standard/host.go +++ b/scheduler/resource/standard/host.go @@ -154,10 +154,10 @@ type Host struct { Port int32 // Port is tcp service port. - TcpPort int32 + TCPPort int32 // Port is quic service port. - QuicPort int32 + QUICPort int32 // DownloadPort is piece downloading port. DownloadPort int32 From 88bd2663edb0816ad268bfc2ead69cc4e6f00dfd Mon Sep 17 00:00:00 2001 From: ftljk <2510317228@qq.com> Date: Mon, 15 Sep 2025 12:58:01 +0800 Subject: [PATCH 3/5] fix port location Signed-off-by: ftljk <2510317228@qq.com> --- scheduler/resource/persistentcache/host.go | 12 ++++++------ scheduler/resource/standard/host.go | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/scheduler/resource/persistentcache/host.go b/scheduler/resource/persistentcache/host.go index 4819107ac7c..a67afabc8cc 100644 --- a/scheduler/resource/persistentcache/host.go +++ b/scheduler/resource/persistentcache/host.go @@ -40,12 +40,6 @@ type Host struct { // Port is grpc service port. Port int32 - // Port is tcp service port. - TCPPort int32 - - // Port is quic service port. - QUICPort int32 - // DownloadPort is piece downloading port. DownloadPort int32 @@ -100,6 +94,12 @@ type Host struct { // Host log. Log *logger.SugaredLoggerOnWith + + // Port is tcp service port. + TCPPort int32 + + // Port is quic service port. + QUICPort int32 } // CPU contains content for cpu. diff --git a/scheduler/resource/standard/host.go b/scheduler/resource/standard/host.go index 6c74f74a403..df71b7ac41a 100644 --- a/scheduler/resource/standard/host.go +++ b/scheduler/resource/standard/host.go @@ -153,12 +153,6 @@ type Host struct { // Port is grpc service port. Port int32 - // Port is tcp service port. - TCPPort int32 - - // Port is quic service port. - QUICPort int32 - // DownloadPort is piece downloading port. DownloadPort int32 @@ -234,6 +228,12 @@ type Host struct { // Host log. Log *logger.SugaredLoggerOnWith + + // Port is tcp service port. + TCPPort int32 + + // Port is quic service port. + QUICPort int32 } // CPU contains content for cpu. From 487213dd52b39d6ed0073b73f8b0929c15f3afc5 Mon Sep 17 00:00:00 2001 From: ftljk <2510317228@qq.com> Date: Mon, 15 Sep 2025 13:04:24 +0800 Subject: [PATCH 4/5] fix port name Signed-off-by: ftljk <2510317228@qq.com> --- scheduler/resource/persistentcache/host.go | 4 ++-- scheduler/resource/standard/host.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scheduler/resource/persistentcache/host.go b/scheduler/resource/persistentcache/host.go index a67afabc8cc..a92797e6002 100644 --- a/scheduler/resource/persistentcache/host.go +++ b/scheduler/resource/persistentcache/host.go @@ -96,10 +96,10 @@ type Host struct { Log *logger.SugaredLoggerOnWith // Port is tcp service port. - TCPPort int32 + DownloadTCPPort int32 // Port is quic service port. - QUICPort int32 + DownloadQUICPort int32 } // CPU contains content for cpu. diff --git a/scheduler/resource/standard/host.go b/scheduler/resource/standard/host.go index df71b7ac41a..229531fa797 100644 --- a/scheduler/resource/standard/host.go +++ b/scheduler/resource/standard/host.go @@ -230,10 +230,10 @@ type Host struct { Log *logger.SugaredLoggerOnWith // Port is tcp service port. - TCPPort int32 + DownloadTCPPort int32 // Port is quic service port. - QUICPort int32 + DownloadQUICPort int32 } // CPU contains content for cpu. From 2f5dabaad8c4897302439e953ddeff9038db8c0a Mon Sep 17 00:00:00 2001 From: ftljk <2510317228@qq.com> Date: Mon, 15 Sep 2025 13:06:54 +0800 Subject: [PATCH 5/5] fix notes Signed-off-by: ftljk <2510317228@qq.com> --- scheduler/resource/persistentcache/host.go | 4 ++-- scheduler/resource/standard/host.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/scheduler/resource/persistentcache/host.go b/scheduler/resource/persistentcache/host.go index a92797e6002..b52f0e1cd35 100644 --- a/scheduler/resource/persistentcache/host.go +++ b/scheduler/resource/persistentcache/host.go @@ -95,10 +95,10 @@ type Host struct { // Host log. Log *logger.SugaredLoggerOnWith - // Port is tcp service port. + // Port is tcp download service port. DownloadTCPPort int32 - // Port is quic service port. + // Port is quic download service port. DownloadQUICPort int32 } diff --git a/scheduler/resource/standard/host.go b/scheduler/resource/standard/host.go index 229531fa797..e166c656903 100644 --- a/scheduler/resource/standard/host.go +++ b/scheduler/resource/standard/host.go @@ -229,10 +229,10 @@ type Host struct { // Host log. Log *logger.SugaredLoggerOnWith - // Port is tcp service port. + // Port is tcp download service port. DownloadTCPPort int32 - // Port is quic service port. + // Port is quic download service port. DownloadQUICPort int32 }