| 174 | } |
| 175 | |
| 176 | __attribute__((visibility("hidden"))) bl::result<std::nullptr_t> Query( |
| 177 | void* worker_handler, const gs::rpc::QueryArgs& query_args, |
| 178 | const std::string& context_key, |
| 179 | std::shared_ptr<gs::IFragmentWrapper> frag_wrapper, |
| 180 | std::shared_ptr<gs::IContextWrapper>& ctx_wrapper) { |
| 181 | auto worker = static_cast<worker_handler_t*>(worker_handler)->worker; |
| 182 | auto result = gs::AppInvoker<_APP_TYPE>::Query(worker, query_args); |
| 183 | if (result) { |
| 184 | if (!context_key.empty()) { |
| 185 | auto ctx = worker->GetContext(); |
| 186 | ctx_wrapper = gs::CtxWrapperBuilder<typename _APP_TYPE::context_t>::build( |
| 187 | context_key, frag_wrapper, ctx); |
| 188 | } |
| 189 | } |
| 190 | return result; |
| 191 | } |
| 192 | |
| 193 | } // namespace detail |
| 194 |
nothing calls this directly
no test coverage detected