blob: 8fa3726c7f66d30b4f1ee877df5821a5b358ffe9 (
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 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "cmdq.h"
#include <vespa/fnet/frt/frt.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);
}
}
|