소스 검색

移除deadline

dcsunny 4 년 전
부모
커밋
f9174c77e0
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      common/context.go

+ 2 - 2
common/context.go

@@ -24,7 +24,7 @@ type AccountContext struct {
 }
 
 func (this *AccountContext) Deadline() (deadline time.Time, ok bool) {
-	return this.ctx.Deadline()
+	return
 }
 
 func (*AccountContext) Done() <-chan struct{} {
@@ -32,7 +32,7 @@ func (*AccountContext) Done() <-chan struct{} {
 }
 
 func (this *AccountContext) Err() error {
-	return this.ctx.Err()
+	return nil
 }
 
 func (this *AccountContext) Value(key interface{}) interface{} {