diff --git a/README.md b/README.md index 58ca1daa..4184916a 100644 --- a/README.md +++ b/README.md @@ -678,6 +678,7 @@ Acknowledgement to people that helped shape Boost.Redis * Mohammad Nejati ([ashtum](https://github.com/ashtum)): For pointing out scenarios where calls to `async_exec` should fail when the connection is lost. * Klemens Morgenstern ([klemens-morgenstern](https://github.com/klemens-morgenstern)): For useful discussion about timeouts, cancellation, synchronous interfaces and general help with Asio. * Vinnie Falco ([vinniefalco](https://github.com/vinniefalco)): For general suggestions about how to improve the code and the documentation. +* Bram Veldhoen ([bveldhoen](https://github.com/bveldhoen)): For contributing a Redis streams example. Also many thanks to all individuals that participated in the Boost review @@ -702,6 +703,8 @@ https://lists.boost.org/Archives/boost/2023/01/253944.php. ### master (incorporates changes to conform the boost review and more) +* Adds Redis stream example. + * Renames the project to Boost.Redis and moves the code into namespace `boost::redis`. diff --git a/examples/cpp20_intro_tls.cpp b/examples/cpp20_intro_tls.cpp index 503b9fe7..33c36e0b 100644 --- a/examples/cpp20_intro_tls.cpp +++ b/examples/cpp20_intro_tls.cpp @@ -28,7 +28,6 @@ auto verify_certificate(bool, net::ssl::verify_context&) -> bool auto co_main(config cfg) -> net::awaitable { - config cfg; cfg.username = "aedis"; cfg.password = "aedis"; cfg.addr.host = "db.occase.de"; diff --git a/examples/cpp20_protobuf.cpp b/examples/cpp20_protobuf.cpp index 200bfe1d..d372798f 100644 --- a/examples/cpp20_protobuf.cpp +++ b/examples/cpp20_protobuf.cpp @@ -44,7 +44,7 @@ void boost_redis_from_bulk(person& u, std::string_view sv, boost::system::error_ using tutorial::boost_redis_to_bulk; using tutorial::boost_redis_from_bulk; -net::awaitable co_main(config const& cfg) +net::awaitable co_main(config cfg) { auto ex = co_await net::this_coro::executor; auto conn = std::make_shared(ex); diff --git a/tests/cpp20_low_level_async.cpp b/tests/cpp20_low_level_async.cpp index cb6776b7..23e8189e 100644 --- a/tests/cpp20_low_level_async.cpp +++ b/tests/cpp20_low_level_async.cpp @@ -25,7 +25,7 @@ using boost::redis::request; using boost::redis::adapter::result; using redis::config; -auto co_main(config const& cfg) -> net::awaitable +auto co_main(config cfg) -> net::awaitable { auto ex = co_await net::this_coro::executor; diff --git a/tests/issue_50.cpp b/tests/issue_50.cpp index 7b27df6b..4905cbed 100644 --- a/tests/issue_50.cpp +++ b/tests/issue_50.cpp @@ -81,7 +81,7 @@ periodic_task(std::shared_ptr conn) -> net::awaitable conn->cancel(operation::reconnection); } -auto co_main(config const& cfg) -> net::awaitable +auto co_main(config cfg) -> net::awaitable { auto ex = co_await net::this_coro::executor; auto conn = std::make_shared(ex);