You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2022/07/06 03:49:13 UTC

[GitHub] [incubator-brpc] zwkno1 commented on a diff in pull request #1768: redis auth support select db

zwkno1 commented on code in PR #1768:
URL: https://github.com/apache/incubator-brpc/pull/1768#discussion_r914388362


##########
src/brpc/policy/redis_authenticator.h:
##########
@@ -36,8 +36,20 @@ class RedisAuthenticator : public Authenticator {
         return 0;
     }
 
+    uint32_t GetAuthFlags() const {
+        uint32_t n = 0;
+        if(!passwd_.empty()) {
+            ++n;
+        }
+        if(db_ >= 0) {
+            ++n;
+        }
+        return n;
+    }
+

Review Comment:
   done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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