blob: c39c05ef8f630c3e1610277ef1edc9bcb6c63dfc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// Copyright Yahoo. 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();
}
}
|