Skip to content

feat(transport): Change channel connect to be async - #107

Merged
LucioFranco merged 3 commits into
masterfrom
lucio/connect-async
Oct 31, 2019
Merged

feat(transport): Change channel connect to be async#107
LucioFranco merged 3 commits into
masterfrom
lucio/connect-async

Conversation

@LucioFranco

Copy link
Copy Markdown
Member

This makes it so you can check if the initial connection
is established. Before this we used reconnect which would
lazily attempt to connect. So if you were trying to connect
to a non existant Server you wouldn't find out until after
you attempted your first RPC. This simplifies everything
by allowing you connect before creating the RPC client.

BREAKING CHANGE: Endpoint::channel was removed in favor of
an async Endpoint::connect.

This makes it so you can check if the initial connection
is established. Before this we used reconnect which would
lazily attempt to connect. So if you were trying to connect
to a non existant Server you wouldn't find out until after
you attempted your first RPC. This simplifies everything
by allowing you connect before creating the RPC client.

BREAKING CHANGE: `Endpoint::channel` was removed in favor of
an async `Endpoint::connect`.
@LucioFranco
LucioFranco merged commit 5c2f4db into master Oct 31, 2019
@LucioFranco
LucioFranco deleted the lucio/connect-async branch October 31, 2019 18:09
rabbitinspace pushed a commit to satelit-project/tonic that referenced this pull request Jan 1, 2020
This makes it so you can check if the initial connection
is established. Before this we used reconnect which would
lazily attempt to connect. So if you were trying to connect
to a non existant Server you wouldn't find out until after
you attempted your first RPC. This simplifies everything
by allowing you connect before creating the RPC client.

BREAKING CHANGE: `Endpoint::channel` was removed in favor of
an async `Endpoint::connect`.
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.

1 participant