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 prod | 5 package prod |
6 | 6 |
7 import ( | 7 import ( |
8 "fmt" | 8 "fmt" |
9 "reflect" | 9 "reflect" |
10 | 10 |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 func (t tqImpl) Stats(queueNames []string, cb tq.RawStatsCB) error { | 124 func (t tqImpl) Stats(queueNames []string, cb tq.RawStatsCB) error { |
125 stats, err := taskqueue.QueueStats(t.Context, queueNames) | 125 stats, err := taskqueue.QueueStats(t.Context, queueNames) |
126 if err != nil { | 126 if err != nil { |
127 return err | 127 return err |
128 } | 128 } |
129 for _, s := range stats { | 129 for _, s := range stats { |
130 cb((*tq.Statistics)(&s), nil) | 130 cb((*tq.Statistics)(&s), nil) |
131 } | 131 } |
132 return nil | 132 return nil |
133 } | 133 } |
| 134 |
| 135 func (t tqImpl) Testable() tq.Testable { |
| 136 return nil |
| 137 } |
OLD | NEW |