Commit c5803e77 authored by gejun's avatar gejun

Fix some copyrights

parent ce12fd20
// Copyright (c) 2018 Bilibili, Inc. // Copyright (c) 2018 brpc authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. // you may not use this file except in compliance with the License.
......
// Copyright (c) 2018 Bilibili, Inc. // Copyright (c) 2018 brpc authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. // you may not use this file except in compliance with the License.
...@@ -43,8 +43,6 @@ public: ...@@ -43,8 +43,6 @@ public:
cntl->set_response_compress_type(brpc::COMPRESS_TYPE_GZIP); cntl->set_response_compress_type(brpc::COMPRESS_TYPE_GZIP);
} }
res->set_message("Hello " + req->name()); res->set_message("Hello " + req->name());
// If an error happens, use controller::set_grpc_error_code to set errors
// e.g., cntl->set_grpc_error_code(brpc::GRPC_RESOURCEEXHAUSTED, "test grpc message");
} }
}; };
......
// Copyright (c) 2018 Bilibili, Inc. // Copyright (c) 2018 brpc authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. // you may not use this file except in compliance with the License.
......
// Copyright (c) 2018 Bilibili, Inc. // Copyright (c) 2018 brpc authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. // you may not use this file except in compliance with the License.
......
// Copyright (c) 2018 Bilibili, Inc. // Copyright (c) 2018 brpc authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. // you may not use this file except in compliance with the License.
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// Author: Ge,Jun (gejun@bilibili.com) // Author: Ge,Jun (jge666@gmail.com)
// Date: Wed Aug 8 05:51:33 PDT 2018 // Date: Wed Aug 8 05:51:33 PDT 2018
#ifndef BUTIL_READER_WRITER_H #ifndef BUTIL_READER_WRITER_H
......
// Copyright (c) 2018 Bilibili, Inc. // Copyright (c) 2018 brpc authors.
// //
// Licensed under the Apache License, Version 2.0 (the "License"); // Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License. // you may not use this file except in compliance with the License.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment