blob: e488376c0365b6e0ea5cccbcd98345f0557c3d51 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "cmdq.h"
#include <vespa/fnet/frt/rpcrequest.h>
namespace config::sentinel {
Cmd::~Cmd()
{
_req->Return();
}
void
Cmd::retError(const char *errorString) const
{
_req->SetError(FRTE_RPC_METHOD_FAILED, errorString);
}
void
Cmd::retValue(const char *valueString) const
{
FRT_Values *dst = _req->GetReturn();
dst->AddString(valueString);
}
}
|