Skip to content

Commit 104194f

Browse files
authored
Merge branch 'main' into release-1.13
2 parents 68ebcf5 + 4c5a460 commit 104194f

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

actor/manager/manager.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ func suiteMethod(method reflect.Method) (*MethodType, error) {
298298
)
299299

300300
if outNum > 2 || outNum == 0 {
301-
return nil, errors.New("num out invalid")
301+
return nil, errors.New("the method must have one or two return values")
302302
}
303303

304304
// The latest return type of the method must be error.

client/jobs.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,6 @@ func (c *GRPCClient) ScheduleJobAlpha1(ctx context.Context, job *Job) error {
160160
if job.Name == "" {
161161
return errors.New("job name is required")
162162
}
163-
if job.Data == nil {
164-
return errors.New("job data is required")
165-
}
166163

167164
jobRequest := &runtimepb.Job{
168165
Name: job.Name,

0 commit comments

Comments
 (0)