MCPcopy Create free account
hub / github.com/catboost/catboost / OnRequest

Method OnRequest

library/cpp/neh/rpc.cpp:127–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125 }
126
127 void OnRequest(IRequestRef req) override {
128 if (C_) {
129 if (auto error = C_(req)) {
130 req->SendError(*error);
131 return;
132 }
133 }
134 if (!*HasLoop_) {
135 ServeRequest(LocalMap_.GetRef(), req);
136 } else {
137 RQ_->Schedule(req);
138 }
139 }
140
141 private:
142 class TLoopFunc: public TFunc {

Callers

nothing calls this directly

Calls 3

SendErrorMethod · 0.45
GetRefMethod · 0.45
ScheduleMethod · 0.45

Tested by

no test coverage detected