Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
levy5307 committed Aug 19, 2020
1 parent f4f1d5d commit ee19b83
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/runtime/rpc/network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@

#include <dsn/tool-api/network.h>
#include <dsn/utility/factory_store.h>
#include <dsn/utility/flags.h>

namespace dsn {
/*static*/ join_point<void, rpc_session *>
Expand All @@ -38,7 +39,7 @@ namespace dsn {
rpc_session::on_rpc_session_disconnected("rpc.session.disconnected");

namespace security {
extern bool FLAGS_enable_auth;
DSN_DECLARE_bool(enable_auth);
} // namespace security

rpc_session::~rpc_session()
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/security/kinit_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

namespace dsn {
namespace security {
extern bool FLAGS_enable_auth;
DSN_DECLARE_bool(enable_auth);

#define KRB5_RETURN_NOT_OK(err, msg) \
do { \
Expand Down
4 changes: 3 additions & 1 deletion src/runtime/security/negotiation_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@
#include "negotiation_utils.h"
#include "server_negotiation.h"

#include <dsn/utility/flags.h>

namespace dsn {
namespace security {
extern bool FLAGS_enable_auth;
DSN_DECLARE_bool(enable_auth);

negotiation_service::negotiation_service() : serverlet("negotiation_service") {}

Expand Down

0 comments on commit ee19b83

Please sign in to comment.