This commit is contained in:
shoopea 2020-01-12 17:20:36 +08:00
parent 7358ca67e8
commit a857268e29

3
job.go
View File

@ -19,7 +19,8 @@ import (
)
func createJob(jobTypeID64 int64, priority int32, userID64 int64, trigger int64, schedule time.Time, payload []byte) (int64, error) {
zb := new(bytes.Buffer)
var zb bytes.Buffer
zw := zlib.NewWriter(&zb)
zw.Write(payload)
zw.Close()