Skip to content

Commit 5fb93c4

Browse files
authored
fix(coordinator): jwt backward compatibility (#1606)
Co-authored-by: yiweichi <yiweichi@users.noreply.github.com>
1 parent a5e2d71 commit 5fb93c4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

common/version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"runtime/debug"
66
)
77

8-
var tag = "v4.4.89"
8+
var tag = "v4.4.90"
99

1010
var commit = func() string {
1111
if info, ok := debug.ReadBuildInfo(); ok {

coordinator/internal/logic/provertask/prover_task.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ func (b *BaseProverTask) checkParameter(ctx *gin.Context) (*proverTaskContext, e
7979

8080
ProverProviderType, ProverProviderTypeExist := ctx.Get(coordinatorType.ProverProviderTypeKey)
8181
if !ProverProviderTypeExist {
82-
return nil, errors.New("get prover provider type from context failed")
82+
// for backward compatibility, set ProverProviderType as internal
83+
ProverProviderType = float64(coordinatorType.ProverProviderTypeInternal)
8384
}
8485
ptc.ProverProviderType = uint8(ProverProviderType.(float64))
8586

0 commit comments

Comments
 (0)