the Job was out of use.

This commit is contained in:
mikespook 2011-09-26 14:25:14 +08:00
부모 4b8306e3bd
커밋 68801a66fe
3개의 변경된 파일1개의 추가작업 그리고 9개의 파일을 삭제

파일 보기

@ -79,11 +79,6 @@ const (
JOB_HIGH = 4
)
// No use
type Job interface {
Encode() []byte
}
// Extract the error message
func getError(data []byte) (eno os.Errno, err os.Error) {
rel := bytes.SplitN(data, []byte{'\x00'}, 2)

파일 보기

@ -8,7 +8,6 @@ import (
"os"
"sync"
"bytes"
// "log"
)
// The definition of the callback function.
@ -67,7 +66,7 @@ func (worker *Worker) AddServer(addr string) (err os.Error) {
defer worker.mutex.Unlock()
if len(worker.clients) == cap(worker.clients) {
return os.NewError("There were too many clients.")
return os.NewError("To many servers added.")
}
// Create a new job server's client as a agent of server

파일 보기

@ -7,7 +7,6 @@ package gearman
import (
"os"
"strconv"
// "log"
)
// Worker side job
@ -16,7 +15,6 @@ type WorkerJob struct {
Handle, UniqueId string
client *jobClient
magicCode, DataType uint32
Job
}
// Create a new job