소스 검색

do not export the raw read() and write()

tags/0.0.1
mikespook 13 년 전
부모
커밋
76f61da7ff
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. +3
    -3
      src/pkg/gearman/worker/jobclient.go

+ 3
- 3
src/pkg/gearman/worker/jobclient.go 파일 보기

@@ -107,11 +107,11 @@ func (client *jobClient) Work() {

// Send a job to the job server.
func (client *jobClient) WriteJob(job *WorkerJob) (err os.Error) {
return client.Write(job.Encode())
return client.write(job.Encode())
}

// Write the encoded job.
func (client *jobClient) Write(buf []byte) (err os.Error) {
// Internal write the encoded job.
func (client *jobClient) write(buf []byte) (err os.Error) {
var n int
for i := 0; i < len(buf); i += n {
n, err = client.conn.Write(buf[i:])


불러오는 중...
취소
저장