-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove thrift marco in user code. #383
Conversation
@@ -32,11 +32,11 @@ clean: | |||
|
|||
echo_client:$(PROTO_OBJS) $(CLIENT_OBJS) libechothrift.a | |||
@echo "Linking $@" | |||
@$(CXX) $(LIBPATHS) $(SOPATHS) -Xlinker "-(" $^ -Xlinker "-)" $(STATIC_LINKINGS) $(DYNAMIC_LINKINGS) -o $@ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不需要DYNAMIC_LINKINGS么
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已经加回去了, 性能数据稍晚一些, 我重新提起PR
config_brpc.sh
Outdated
@@ -34,8 +34,8 @@ eval set -- "$TEMP" | |||
# Convert to abspath always so that generated mk is include-able from everywhere | |||
while true; do | |||
case "$1" in | |||
--headers ) HDRS_IN="$(realpath $2)"; shift 2 ;; | |||
--libs ) LIBS_IN="$(realpath $2)"; shift 2 ;; | |||
--headers ) HDRS_IN="$(readlink -e $2)"; shift 2 ;; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mac下没有readlink
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已经改回去了
example/echo_c++/client.cpp
Outdated
@@ -44,7 +44,7 @@ int main(int argc, char* argv[]) { | |||
options.connection_type = FLAGS_connection_type; | |||
options.timeout_ms = FLAGS_timeout_ms/*milliseconds*/; | |||
options.max_retry = FLAGS_max_retry; | |||
if (channel.Init(FLAGS_server.c_str(), FLAGS_load_balancer.c_str(), &options) != 0) { | |||
if (channel.Init("file://server.list", FLAGS_load_balancer.c_str(), &options) != 0) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里需要改回去
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
个人测试代码, 误操作, 已经回滚
example/echo_c++/client.cpp
Outdated
@@ -85,7 +85,7 @@ int main(int argc, char* argv[]) { | |||
} else { | |||
LOG(WARNING) << cntl.ErrorText(); | |||
} | |||
usleep(FLAGS_interval_ms * 1000L); | |||
//usleep(FLAGS_interval_ms * 1000L); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
需要该回去
No description provided.