From 85180419e92663da1f96bef2c18e563f4a4f2fa4 Mon Sep 17 00:00:00 2001 From: Morty Date: Tue, 4 Mar 2025 11:45:24 +0800 Subject: [PATCH 1/3] fix(coordinator): jwt backward compatibility --- coordinator/internal/logic/provertask/prover_task.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coordinator/internal/logic/provertask/prover_task.go b/coordinator/internal/logic/provertask/prover_task.go index 512e06718d..41045c6feb 100644 --- a/coordinator/internal/logic/provertask/prover_task.go +++ b/coordinator/internal/logic/provertask/prover_task.go @@ -79,7 +79,8 @@ func (b *BaseProverTask) checkParameter(ctx *gin.Context) (*proverTaskContext, e ProverProviderType, ProverProviderTypeExist := ctx.Get(coordinatorType.ProverProviderTypeKey) if !ProverProviderTypeExist { - return nil, errors.New("get prover provider type from context failed") + // for backward compatibility, set ProverProviderType as internal + ProverProviderType = coordinatorType.ProverProviderTypeInternal } ptc.ProverProviderType = uint8(ProverProviderType.(float64)) From 41d23d406bac72fb1ca70d3cf178c7673ce7ba28 Mon Sep 17 00:00:00 2001 From: yiweichi Date: Tue, 4 Mar 2025 03:52:34 +0000 Subject: [PATCH 2/3] =?UTF-8?q?chore:=20auto=20version=20bump=E2=80=89[bot?= =?UTF-8?q?]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/version/version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/version/version.go b/common/version/version.go index bbdef889fb..1dc5109984 100644 --- a/common/version/version.go +++ b/common/version/version.go @@ -5,7 +5,7 @@ import ( "runtime/debug" ) -var tag = "v4.4.89" +var tag = "v4.4.90" var commit = func() string { if info, ok := debug.ReadBuildInfo(); ok { From 3077371e1f974ee82a6934f84c13f02613db4bd7 Mon Sep 17 00:00:00 2001 From: Morty Date: Tue, 4 Mar 2025 14:17:04 +0800 Subject: [PATCH 3/3] fix(coordinator): jwt backward compatibility --- coordinator/internal/logic/provertask/prover_task.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coordinator/internal/logic/provertask/prover_task.go b/coordinator/internal/logic/provertask/prover_task.go index 41045c6feb..2a2b20df8d 100644 --- a/coordinator/internal/logic/provertask/prover_task.go +++ b/coordinator/internal/logic/provertask/prover_task.go @@ -80,7 +80,7 @@ func (b *BaseProverTask) checkParameter(ctx *gin.Context) (*proverTaskContext, e ProverProviderType, ProverProviderTypeExist := ctx.Get(coordinatorType.ProverProviderTypeKey) if !ProverProviderTypeExist { // for backward compatibility, set ProverProviderType as internal - ProverProviderType = coordinatorType.ProverProviderTypeInternal + ProverProviderType = float64(coordinatorType.ProverProviderTypeInternal) } ptc.ProverProviderType = uint8(ProverProviderType.(float64))