diff --git a/example/build_with_bazel_module/client.cpp b/example/build_with_bazel_module/client.cpp index 2ce335073b..0e04dacc8a 100644 --- a/example/build_with_bazel_module/client.cpp +++ b/example/build_with_bazel_module/client.cpp @@ -38,7 +38,7 @@ int main(int argc, char* argv[]) { // Channel is thread-safe and can be shared by all threads in your program. brpc::Channel channel; - // Initialize the channel, NULL means using default options. + // Initialize the channel, nullptr means using default options. brpc::ChannelOptions options; options.protocol = FLAGS_protocol; options.connection_type = FLAGS_connection_type; @@ -69,9 +69,9 @@ int main(int argc, char* argv[]) { // being serialized into protobuf messages. cntl.request_attachment().append(FLAGS_attachment); - // Because `done'(last parameter) is NULL, this function waits until + // Because `done'(last parameter) is nullptr, this function waits until // the response comes back or error occurs(including timedout). - stub.Echo(&cntl, &request, &response, NULL); + stub.Echo(&cntl, &request, &response, nullptr); if (!cntl.Failed()) { LOG(INFO) << "Received response from " << cntl.remote_side() << " to " << cntl.local_side() diff --git a/example/build_with_bazel_module/server.cpp b/example/build_with_bazel_module/server.cpp index 54ca096016..289b1afe13 100644 --- a/example/build_with_bazel_module/server.cpp +++ b/example/build_with_bazel_module/server.cpp @@ -83,8 +83,6 @@ int main(int argc, char* argv[]) { // Start the server. brpc::ServerOptions options; - options.mutable_ssl_options()->default_cert.certificate = "cert.pem"; - options.mutable_ssl_options()->default_cert.private_key = "key.pem"; options.idle_timeout_sec = FLAGS_idle_timeout_s; options.max_concurrency = FLAGS_max_concurrency; options.internal_port = FLAGS_internal_port;