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


##########
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:
   注意一下编码规范,if后面要加空格



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to