فهرست منبع

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