Skip to content

Conversation

@rohan-varma
Copy link
Contributor

@rohan-varma rohan-varma commented Nov 21, 2019

Stack from ghstack:

Provide a default constructor so that users don't have to construct
RPC agent options. Also rename this to RPCBackend Options as suggested.

Differential Revision: D18628698

Provide a default constructor so that users don't have to construct
RPC agent options. Also rename this to RPCBackend Options as suggested.

Differential Revision: [D18628698](https://our.internmc.facebook.com/intern/diff/D18628698/)

[ghstack-poisoned]
# default construct a set of RPC agent options.
rpc_agent_options = rpc.backend_registry.construct_rpc_agent_options(
backend
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sense.

construct_rpc_agent_options handlers should provide defaults in Python world.

Copy link
Contributor

@xush6528 xush6528 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noticed your PR summary and you want to do the renaming as well.

…e backend type"

Provide a default constructor so that users don't have to construct
RPC agent options. Also rename this to RPCBackend Options as suggested.

Differential Revision: [D18628698](https://our.internmc.facebook.com/intern/diff/D18628698/)

[ghstack-poisoned]
…e backend type"

Provide a default constructor so that users don't have to construct
RPC agent options. Also rename this to RPCBackend Options as suggested.

Differential Revision: [D18628698](https://our.internmc.facebook.com/intern/diff/D18628698/)

[ghstack-poisoned]
@rohan-varma rohan-varma requested a review from xush6528 November 21, 2019 00:56
…e backend type"

Provide a default constructor so that users don't have to construct
RPC agent options. Also rename this to RPCBackend Options as suggested.

Differential Revision: [D18628698](https://our.internmc.facebook.com/intern/diff/D18628698/)

[ghstack-poisoned]
…e backend type"

Provide a default constructor so that users don't have to construct
RPC agent options. Also rename this to RPCBackend Options as suggested.

Differential Revision: [D18628698](https://our.internmc.facebook.com/intern/diff/D18628698/)

[ghstack-poisoned]
rohan-varma added a commit that referenced this pull request Nov 21, 2019
Pull Request resolved: #30201

Provide a default constructor so that users don't have to construct
RPC agent options. Also rename this to RPCBackend Options as suggested.
ghstack-source-id: 94321742

Differential Revision: [D18628698](https://our.internmc.facebook.com/intern/diff/D18628698/)
…e backend type"

Provide a default constructor so that users don't have to construct
RPC agent options. Also rename this to RPCBackend Options as suggested.

Differential Revision: [D18628698](https://our.internmc.facebook.com/intern/diff/D18628698/)

[ghstack-poisoned]
rohan-varma added a commit that referenced this pull request Nov 21, 2019
Pull Request resolved: #30201

Provide a default constructor so that users don't have to construct
RPC agent options. Also rename this to RPCBackend Options as suggested.
ghstack-source-id: 94323760

Differential Revision: [D18628698](https://our.internmc.facebook.com/intern/diff/D18628698/)
…e backend type"

Provide a default constructor so that users don't have to construct
RPC agent options. Also rename this to RPCBackend Options as suggested.

Differential Revision: [D18628698](https://our.internmc.facebook.com/intern/diff/D18628698/)

[ghstack-poisoned]
@rohan-varma rohan-varma changed the title [wip][rpc] default construct rpc agent options based on the backend type [rpc] default construct rpc agent options based on the backend type Nov 21, 2019
Copy link
Contributor

@xush6528 xush6528 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, Rohan!

)
if not rpc_backend_options:
# default construct a set of RPC agent options.
rpc_backend_options = rpc.backend_registry.construct_rpc_backend_options(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

…kend type"

Provide a default constructor so that users don't have to construct
RPC agent options. Also rename this to RPCBackend Options as suggested.

Differential Revision: [D18628698](https://our.internmc.facebook.com/intern/diff/D18628698/)

[ghstack-poisoned]
rohan-varma added a commit that referenced this pull request Nov 22, 2019
Pull Request resolved: #30201

Provide a default constructor so that users don't have to construct
RPC agent options. Also rename this to RPCBackend Options as suggested.
ghstack-source-id: 94406842

Differential Revision: [D18628698](https://our.internmc.facebook.com/intern/diff/D18628698/)
…kend type"

Provide a default constructor so that users don't have to construct
RPC agent options. Also rename this to RPCBackend Options as suggested.

Differential Revision: [D18628698](https://our.internmc.facebook.com/intern/diff/D18628698/)

[ghstack-poisoned]
@facebook-github-bot facebook-github-bot deleted the gh/rohan-varma/39/head branch December 10, 2019 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants