This commit is contained in:
shoopea 2020-01-17 12:27:26 +08:00
parent 4170f0ff95
commit 8df47bb0af

2
job.go
View File

@ -142,7 +142,7 @@ func setJobPayload(jobID64 int64, payload []byte) error {
zpayload := zb.Bytes()
if len(zpayload) > 20000 {
return 0, errors.New("payload too long")
return errors.New("payload too long")
}
stmt, err := db.Prepare(`UPDATE obj_job j SET j.payload = ? WHERE j.obj_id = ?;`)