This is an automated email from the ASF dual-hosted git repository. wwbmmm pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-brpc.git
The following commit(s) were added to refs/heads/master by this push: new 606fb7b1 fix some typos (#2075) 606fb7b1 is described below commit 606fb7b1e2bdf8cd57cd626c30489620767c6b85 Author: Bright Chen <1021774...@qq.com> AuthorDate: Mon Jan 9 10:53:34 2023 +0800 fix some typos (#2075) --- src/brpc/details/mesalink_ssl_helper.cpp | 2 +- src/brpc/details/ssl_helper.cpp | 2 +- src/brpc/server.cpp | 2 +- src/brpc/server.h | 2 +- src/brpc/socket.cpp | 4 ++-- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/brpc/details/mesalink_ssl_helper.cpp b/src/brpc/details/mesalink_ssl_helper.cpp index 96b9cf5d..afc38613 100644 --- a/src/brpc/details/mesalink_ssl_helper.cpp +++ b/src/brpc/details/mesalink_ssl_helper.cpp @@ -208,7 +208,7 @@ static int LoadCertificate(SSL_CTX* ctx, return -1; } - // Load the main certficate + // Load the main certificate if (SSL_CTX_use_certificate(ctx, x.get()) != 1) { LOG(ERROR) << "Fail to load " << certificate << ": " << SSLError(ERR_get_error()); diff --git a/src/brpc/details/ssl_helper.cpp b/src/brpc/details/ssl_helper.cpp index effba37e..76a73547 100644 --- a/src/brpc/details/ssl_helper.cpp +++ b/src/brpc/details/ssl_helper.cpp @@ -320,7 +320,7 @@ static int LoadCertificate(SSL_CTX* ctx, return -1; } - // Load the main certficate + // Load the main certificate if (SSL_CTX_use_certificate(ctx, x.get()) != 1) { LOG(ERROR) << "Fail to load " << certificate << ": " << SSLError(ERR_get_error()); diff --git a/src/brpc/server.cpp b/src/brpc/server.cpp index 15c835b2..2087cbcf 100644 --- a/src/brpc/server.cpp +++ b/src/brpc/server.cpp @@ -2019,7 +2019,7 @@ int Server::ResetCertificates(const std::vector<CertInfo>& certs) { return -1; } - // Add default certficiate into tmp_map first since it can't be reloaded + // Add default certificate into tmp_map first since it can't be reloaded std::string default_cert_key = _options.ssl_options().default_cert.certificate + _options.ssl_options().default_cert.private_key; diff --git a/src/brpc/server.h b/src/brpc/server.h index 31ffc05b..0974ce12 100644 --- a/src/brpc/server.h +++ b/src/brpc/server.h @@ -623,7 +623,7 @@ friend class Controller; std::shared_ptr<SocketSSLContext> ctx; std::vector<std::string> filters; }; - // Mapping from [certficate + private-key] to SSLContext + // Mapping from [certificate + private-key] to SSLContext typedef butil::FlatMap<std::string, SSLContext> SSLContextMap; void FreeSSLContexts(); diff --git a/src/brpc/socket.cpp b/src/brpc/socket.cpp index b4dc734e..e3878c19 100644 --- a/src/brpc/socket.cpp +++ b/src/brpc/socket.cpp @@ -1095,7 +1095,7 @@ void* Socket::ProcessEvent(void* arg) { } // Check if there're new requests appended. -// If yes, point old_head to to reversed new requests and return false; +// If yes, point old_head to reversed new requests and return false; // If no: // old_head is fully written, set _write_head to NULL and return true; // old_head is not written yet, keep _write_head unchanged and return false; @@ -1147,7 +1147,7 @@ bool Socket::IsWriteComplete(Socket::WriteRequest* old_head, old_head->next = tail; // Call Setup() from oldest to newest, notice that the calling sequence // matters for protocols using pipelined_count, this is why we don't - // calling Setup in above loop which is from newest to oldest. + // call Setup in above loop which is from newest to oldest. for (WriteRequest* q = tail; q; q = q->next) { q->Setup(this); } --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org For additional commands, e-mail: dev-h...@brpc.apache.org