Ready reports whether the query is ready for block producing. It is assumed that all objects should be ready shortly.
()
| 41 | // Ready reports whether the query is ready for block producing. It is assumed that all objects |
| 42 | // should be ready shortly. |
| 43 | func (q *QueryTracker) Ready() bool { |
| 44 | q.RLock() |
| 45 | defer q.RUnlock() |
| 46 | return q.Resp != nil |
| 47 | } |
| 48 | |
| 49 | type pool struct { |
| 50 | // Failed queries: hash => Request |