diff options
author | heretic <heretic@yandex-team.ru> | 2022-02-10 16:45:43 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:43 +0300 |
commit | 397cbe258b9e064f49c4ca575279f02f39fef76e (patch) | |
tree | a0b0eb3cca6a14e4e8ea715393637672fa651284 /contrib/libs/grpc/test/cpp/util/grpc_cli.cc | |
parent | 43f5a35593ebc9f6bcea619bb170394ea7ae468e (diff) | |
download | ydb-397cbe258b9e064f49c4ca575279f02f39fef76e.tar.gz |
Restoring authorship annotation for <heretic@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/grpc/test/cpp/util/grpc_cli.cc')
-rw-r--r-- | contrib/libs/grpc/test/cpp/util/grpc_cli.cc | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/contrib/libs/grpc/test/cpp/util/grpc_cli.cc b/contrib/libs/grpc/test/cpp/util/grpc_cli.cc index 45c6b94f84..45e509658e 100644 --- a/contrib/libs/grpc/test/cpp/util/grpc_cli.cc +++ b/contrib/libs/grpc/test/cpp/util/grpc_cli.cc @@ -51,11 +51,11 @@ --decode=grpc.testing.SimpleResponse \ src/proto/grpc/testing/messages.proto \ < output.bin > output.txt - 10. --default_service_config, optional default service config to use - on the channel. Note that this may be ignored if the name resolver - returns a service config. - 11. --display_peer_address, on CallMethod commands, log the peer socket - address of the connection that each RPC is made on to stderr. + 10. --default_service_config, optional default service config to use + on the channel. Note that this may be ignored if the name resolver + returns a service config. + 11. --display_peer_address, on CallMethod commands, log the peer socket + address of the connection that each RPC is made on to stderr. */ #include <fstream> @@ -70,12 +70,12 @@ DEFINE_string(outfile, "", "Output file (default is stdout)"); -static bool SimplePrint(const TString& outfile, const TString& output) { +static bool SimplePrint(const TString& outfile, const TString& output) { if (outfile.empty()) { - std::cout << output << std::flush; + std::cout << output << std::flush; } else { std::ofstream output_file(outfile, std::ios::app | std::ios::binary); - output_file << output << std::flush; + output_file << output << std::flush; output_file.close(); } return true; @@ -86,5 +86,5 @@ int main(int argc, char** argv) { return grpc::testing::GrpcToolMainLib( argc, (const char**)argv, grpc::testing::CliCredentials(), - std::bind(SimplePrint, TString(FLAGS_outfile.c_str()), std::placeholders::_1)); + std::bind(SimplePrint, TString(FLAGS_outfile.c_str()), std::placeholders::_1)); } |