Skip to content

Commit 6936a4e

Browse files
yiweichicolinlyguo
authored andcommitted
fix(coordinator): jwt backward compatibility (#1606)
Co-authored-by: yiweichi <[email protected]>
1 parent 03c63a6 commit 6936a4e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

coordinator/internal/logic/provertask/prover_task.go

+2-1
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)