aboutsummaryrefslogtreecommitdiffstats
path: root/configd/src/apps/sentinel/check-completion-handler.cpp
blob: a224832aa8177ad45335488184c65fe8efd4df04 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include "check-completion-handler.h"

namespace config::sentinel {

CheckCompletionHandler::CheckCompletionHandler(FRT_RPCRequest *parent)
  : _parentRequest(parent)
{
}

CheckCompletionHandler::~CheckCompletionHandler() = default;

void CheckCompletionHandler::returnStatus(bool ok) {
    FRT_Values *dst = _parentRequest->GetReturn();
    dst->AddString(ok ? "ok" : "bad");
    _parentRequest->Return();
}

}