浏览代码

移除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{} {