| 102 | |
| 103 | namespace { |
| 104 | const String* getString(const Dict* dict, const std::string& key) |
| 105 | { |
| 106 | const String* c = downcast<String>(dict->get(key)); |
| 107 | if (c) { |
| 108 | return c; |
| 109 | } |
| 110 | else { |
| 111 | throw DL_ABORT_EX(fmt("Malformed DHT message. Missing %s", key.c_str())); |
| 112 | } |
| 113 | } |
| 114 | } // namespace |
| 115 | |
| 116 | namespace { |
no test coverage detected