| 48 | } |
| 49 | |
| 50 | ServerManager::ServerManager() { |
| 51 | _format_services.clear(); |
| 52 | _options.idle_timeout_sec = FLAGS_idle_timeout_s; |
| 53 | _options.max_concurrency = FLAGS_max_concurrency; |
| 54 | _options.num_threads = FLAGS_num_threads; |
| 55 | } |
| 56 | |
| 57 | int ServerManager::add_service_by_format(const std::string& format) { |
| 58 | Service* service = FormatServiceManager::instance().get_service(format); |