From 632d236343910020f97dda89c1892aa661f6667b Mon Sep 17 00:00:00 2001 From: mikespook Date: Tue, 29 May 2012 08:45:37 +0800 Subject: [PATCH] typo --- worker/job.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worker/job.go b/worker/job.go index 054fd30..687ffb1 100644 --- a/worker/job.go +++ b/worker/job.go @@ -66,11 +66,11 @@ func (job *Job) Encode() (data []byte) { // Send some datas to client. // Using this in a job's executing. -func (job *Job) UpdateData(data []byte, iswaring bool) { +func (job *Job) UpdateData(data []byte, iswarning bool) { result := append([]byte(job.Handle), 0) result = append(result, data...) var datatype uint32 - if iswaring { + if iswarning { datatype = common.WORK_WARNING } else { datatype = common.WORK_DATA