Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo fix #193

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions include/boost/redis/connection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ class basic_connection {
, timer_{ex}
{ }

/// Contructs from a context.
/// Constructs from a context.
explicit
basic_connection(
asio::io_context& ioc,
Expand All @@ -125,17 +125,17 @@ class basic_connection {
* timeout with value zero will disable health-checks. If the Redis
* server does not respond to a health-check within two times the value
* specified here, it will be considered unresponsive and the connection
* will be closed and a new connection will be stablished.
* will be closed and a new connection will be established.
* 5. Starts read and write operations with the Redis
* server. More specifically it will trigger the write of all
* requests i.e. calls to `async_exec` that happened prior to this
* call.
*
* When a connection is lost for any reason, a new one is
* stablished automatically. To disable reconnection call
* established automatically. To disable reconnection call
* `boost::redis::connection::cancel(operation::reconnection)`.
*
* @param cfg Configuration paramters.
* @param cfg Configuration parameters.
* @param l Logger object. The interface expected is specified in the class `boost::redis::logger`.
* @param token Completion token.
*
Expand Down
2 changes: 1 addition & 1 deletion include/boost/redis/detail/connection_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ struct writer_op {
conn_->writer_timer_.async_wait(std::move(self));
if (!conn_->is_open() || is_cancelled(self)) {
logger_.trace("writer-op: canceled (3). Exiting ...");
// Notice this is not an error of the op, stoping was
// Notice this is not an error of the op, stopping was
// requested from the outside, so we complete with
// success.
self.complete({});
Expand Down
2 changes: 1 addition & 1 deletion include/boost/redis/error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ enum class error
not_a_number,

/// The maximum depth of a nested response was exceeded.
exceeeds_max_nested_depth,
exceeds_max_nested_depth,

/// Got non boolean value.
unexpected_bool_value,
Expand Down
2 changes: 1 addition & 1 deletion include/boost/redis/impl/error.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ struct error_category_impl : system::error_category {
switch(static_cast<error>(ev)) {
case error::invalid_data_type: return "Invalid resp3 type.";
case error::not_a_number: return "Can't convert string to number (maybe forgot to upgrade to RESP3?).";
case error::exceeeds_max_nested_depth: return "Exceeds the maximum number of nested responses.";
case error::exceeds_max_nested_depth: return "Exceeds the maximum number of nested responses.";
case error::unexpected_bool_value: return "Unexpected bool value.";
case error::empty_field: return "Expected field value is empty.";
case error::expects_resp3_simple_type: return "Expects a resp3 simple type.";
Expand Down
2 changes: 1 addition & 1 deletion include/boost/redis/resp3/impl/parser.ipp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ parser::consume_impl(
commit_elem();
} else {
if (depth_ == max_embedded_depth) {
ec = error::exceeeds_max_nested_depth;
ec = error::exceeds_max_nested_depth;
return {};
}

Expand Down
4 changes: 2 additions & 2 deletions test/test_low_level.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ generic_response const attr_e1b
test(make_expected(S04e, array_type2{}, boost::redis::error::incompatible_size));\
test(make_expected(S04e, tuple_int_2{}, boost::redis::error::incompatible_size));\
test(make_expected(S04f, array_type2{}, boost::redis::error::nested_aggregate_not_supported));\
test(make_expected(S04g, generic_response{}, boost::redis::error::exceeeds_max_nested_depth));\
test(make_expected(S04g, generic_response{}, boost::redis::error::exceeds_max_nested_depth));\
test(make_expected(S04h, array_e1d));\
test(make_expected(S04h, array_e1e));\
test(make_expected(S04i, set_type{}, boost::redis::error::expects_resp3_set)); \
Expand Down Expand Up @@ -502,7 +502,7 @@ BOOST_AUTO_TEST_CASE(cover_error)
{
check_error("boost.redis", boost::redis::error::invalid_data_type);
check_error("boost.redis", boost::redis::error::not_a_number);
check_error("boost.redis", boost::redis::error::exceeeds_max_nested_depth);
check_error("boost.redis", boost::redis::error::exceeds_max_nested_depth);
check_error("boost.redis", boost::redis::error::unexpected_bool_value);
check_error("boost.redis", boost::redis::error::empty_field);
check_error("boost.redis", boost::redis::error::expects_resp3_simple_type);
Expand Down