diff options
author | Juanli Shen <aspirinsjl@gmail.com> | 2018-07-06 22:08:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-06 22:08:34 -0700 |
commit | 86aa172d9baa33d3d0309b06c410d6eac351d748 (patch) | |
tree | 1beadd518eaa8fb1732d1bb087963ecc19ffc677 /src/cpp | |
parent | 252d3f3b460cf56db2e30d68e566a00cef0304eb (diff) | |
parent | 9e77eeb0d584725f7049356f1c6b8b70f648d1bb (diff) |
Merge pull request #15919 from AspirinSJL/reorder
Reorder steps in ServerBuilder::BuildAndStart()
Diffstat (limited to 'src/cpp')
-rw-r--r-- | src/cpp/server/server_builder.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/cpp/server/server_builder.cc b/src/cpp/server/server_builder.cc index 5d1919cd1d..e0b9b7a62b 100644 --- a/src/cpp/server/server_builder.cc +++ b/src/cpp/server/server_builder.cc @@ -174,10 +174,6 @@ ServerBuilder& ServerBuilder::AddListeningPort( } std::unique_ptr<Server> ServerBuilder::BuildAndStart() { - for (auto plugin = plugins_.begin(); plugin != plugins_.end(); plugin++) { - (*plugin)->UpdateServerBuilder(this); - } - ChannelArguments args; for (auto option = options_.begin(); option != options_.end(); ++option) { (*option)->UpdateArguments(&args); @@ -185,6 +181,7 @@ std::unique_ptr<Server> ServerBuilder::BuildAndStart() { } for (auto plugin = plugins_.begin(); plugin != plugins_.end(); plugin++) { + (*plugin)->UpdateServerBuilder(this); (*plugin)->UpdateChannelArguments(&args); } |