Ver Fonte

移除deadline

dcsunny há 4 anos atrás
pai
commit
f9174c77e0
1 ficheiros alterados com 2 adições e 2 exclusões
  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{} {