Skip to content

Commit 963b5e2

Browse files
authored
Merge pull request #941 from evoskuil/master
Adapt to rename of network::monad namespace.
2 parents 5619022 + 1c63ce7 commit 963b5e2

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/protocols/protocol_bitcoind_rpc.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ using namespace system;
3232
using namespace network::rpc;
3333
using namespace network::http;
3434
using namespace network::json;
35-
using namespace network::monad;
3635
using namespace std::placeholders;
3736

3837
BC_PUSH_WARNING(NO_THROW_IN_NOEXCEPT)
@@ -131,7 +130,7 @@ void protocol_bitcoind_rpc::handle_receive_post(const code& ec,
131130
}
132131

133132
// Endpoint accepts only json-rpc posts.
134-
if (!post->body().contains<rpcin_value>())
133+
if (!post->body().contains<in_value>())
135134
{
136135
send_bad_request(*post);
137136
return;
@@ -140,7 +139,7 @@ void protocol_bitcoind_rpc::handle_receive_post(const code& ec,
140139
// Get the parsed json-rpc request object.
141140
// v1 or v2 both supported, batch not yet supported.
142141
// v1 null id and v2 missing id implies notification and no response.
143-
const auto& request = post->body().get<rpcin_value>().message;
142+
const auto& request = post->body().get<in_value>().message;
144143

145144
// The post is saved off during asynchonous handling and used in send_json
146145
// to formulate response headers, isolating handlers from http semantics.
@@ -408,7 +407,7 @@ void protocol_bitcoind_rpc::send_rpc(response_t&& model,
408407
add_common_headers(response, *request);
409408
add_access_control_headers(response, *request);
410409
response.set(field::content_type, json);
411-
response.body() = rpcout_value
410+
response.body() = out_value
412411
{
413412
{ .size_hint = size_hint }, std::move(model),
414413
};

src/protocols/protocol_html.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ void protocol_html::send_json(boost::json::value&& model, size_t size_hint,
166166
const request& request) NOEXCEPT
167167
{
168168
BC_ASSERT(stranded());
169-
using namespace network::monad;
170169
response response{ status::ok, request.version() };
171170
add_common_headers(response, request);
172171
add_access_control_headers(response, request);

0 commit comments

Comments
 (0)