| 116 | } |
| 117 | |
| 118 | int RequestCache::BuildResponse(const CacheEntry& entry, |
| 119 | predictor::general_model::Response* res) { |
| 120 | if (res == nullptr) { |
| 121 | return -1; |
| 122 | } |
| 123 | res->ParseFromString(entry.buf_); |
| 124 | res->clear_profile_time(); |
| 125 | return 0; |
| 126 | } |
| 127 | |
| 128 | int RequestCache::BuildCacheEntry(const Response& res, CacheEntry* entry) { |
| 129 | if (entry == nullptr) { |
nothing calls this directly
no outgoing calls
no test coverage detected