| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package taskqueue | 5 package taskqueue |
| 6 | 6 |
| 7 import ( | 7 import ( |
| 8 "github.com/luci/luci-go/common/errors" | 8 "github.com/luci/luci-go/common/errors" |
| 9 "golang.org/x/net/context" | 9 "golang.org/x/net/context" |
| 10 ) | 10 ) |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 if err == nil { | 68 if err == nil { |
| 69 err = lme.Get() | 69 err = lme.Get() |
| 70 } | 70 } |
| 71 return ret, err | 71 return ret, err |
| 72 } | 72 } |
| 73 | 73 |
| 74 func (t *taskqueueImpl) Raw() RawInterface { | 74 func (t *taskqueueImpl) Raw() RawInterface { |
| 75 return t.RawInterface | 75 return t.RawInterface |
| 76 } | 76 } |
| 77 | 77 |
| 78 func (t *taskqueueImpl) Testable() Testable { |
| 79 return t.RawInterface.Testable() |
| 80 } |
| 81 |
| 78 var _ Interface = (*taskqueueImpl)(nil) | 82 var _ Interface = (*taskqueueImpl)(nil) |
| 79 | 83 |
| 80 func Get(c context.Context) Interface { | 84 func Get(c context.Context) Interface { |
| 81 return &taskqueueImpl{GetRaw(c)} | 85 return &taskqueueImpl{GetRaw(c)} |
| 82 } | 86 } |
| OLD | NEW |