mirror of https://gitee.com/bigwinds/arangodb
Fix unneeded return code. (#9853)
This commit is contained in:
parent
139c5d3839
commit
0599a1c79c
|
@ -1976,12 +1976,13 @@ void Agent::emptyCbTrashBin() {
|
||||||
// queue + write.
|
// queue + write.
|
||||||
auto* scheduler = SchedulerFeature::SCHEDULER;
|
auto* scheduler = SchedulerFeature::SCHEDULER;
|
||||||
if (scheduler != nullptr) {
|
if (scheduler != nullptr) {
|
||||||
scheduler->queue(RequestLane::INTERNAL_LOW, [envelope = std::move(envelope)] {
|
bool ok = scheduler->queue(RequestLane::INTERNAL_LOW, [envelope = std::move(envelope)] {
|
||||||
auto* agent = AgencyFeature::AGENT;
|
auto* agent = AgencyFeature::AGENT;
|
||||||
if (!application_features::ApplicationServer::isStopping() && agent) {
|
if (!application_features::ApplicationServer::isStopping() && agent) {
|
||||||
agent->write(envelope);
|
agent->write(envelope);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
LOG_TOPIC_IF("52461", DEBUG, Logger::AGENCY, !ok) << "Could not schedule callback cleanup job.";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue