You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by ww...@apache.org on 2023/02/14 01:43:54 UTC

[brpc] branch master updated: Fix some typos

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/brpc.git


The following commit(s) were added to refs/heads/master by this push:
     new 93aa59e0 Fix some typos
     new 31e801ce Merge pull request #2124 from chenBright/typo
93aa59e0 is described below

commit 93aa59e02b5434220960b457a902397d6ad0a882
Author: ChenBright <ch...@foxmail.com>
AuthorDate: Mon Feb 13 21:00:30 2023 +0800

    Fix some typos
---
 src/brpc/ssl_options.h       | 2 +-
 src/bthread/mutex.cpp        | 2 +-
 src/bthread/timer_thread.cpp | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/brpc/ssl_options.h b/src/brpc/ssl_options.h
index 4500563e..57c4d38d 100644
--- a/src/brpc/ssl_options.h
+++ b/src/brpc/ssl_options.h
@@ -28,7 +28,7 @@ struct CertInfo {
     // Certificate in PEM format.
     // Note that CN and alt subjects will be extracted from the certificate,
     // and will be used as hostnames. Requests to this hostname (provided SNI
-    // extension supported) will be encrypted using this certifcate.
+    // extension supported) will be encrypted using this certificate.
     // Supported both file path and raw string
     std::string certificate;
 
diff --git a/src/bthread/mutex.cpp b/src/bthread/mutex.cpp
index 3d38ef93..0c39f783 100644
--- a/src/bthread/mutex.cpp
+++ b/src/bthread/mutex.cpp
@@ -640,7 +640,7 @@ inline int mutex_lock_contended(bthread_mutex_t* m) {
     while (whole->exchange(BTHREAD_MUTEX_CONTENDED) & BTHREAD_MUTEX_LOCKED) {
         if (bthread::butex_wait(whole, BTHREAD_MUTEX_CONTENDED, NULL) < 0 &&
             errno != EWOULDBLOCK && errno != EINTR/*note*/) {
-            // a mutex lock should ignore interrruptions in general since
+            // a mutex lock should ignore interruptions in general since
             // user code is unlikely to check the return value.
             return errno;
         }
diff --git a/src/bthread/timer_thread.cpp b/src/bthread/timer_thread.cpp
index 1610f0b3..cdfca646 100644
--- a/src/bthread/timer_thread.cpp
+++ b/src/bthread/timer_thread.cpp
@@ -243,7 +243,7 @@ TimerThread::TaskId TimerThread::schedule(
 }
 
 // Notice that we don't recycle the Task in this function, let TimerThread::run
-// do it. The side effect is that we may allocated many unscheduled tasks before
+// do it. The side effect is that we may allocate many unscheduled tasks before
 // TimerThread wakes up. The number is approximately qps * timeout_s. Under the
 // precondition that ResourcePool<Task> caches 128K for each thread, with some
 // further calculations, we can conclude that in a RPC scenario:


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org