Unverified Commit c480d90a authored by Niklas Adolfsson's avatar Niklas Adolfsson Committed by GitHub
Browse files

refactor `SubscriptionClosed` (#612)



* refactor `SubscriptionClosed`

I noticed that we "trying" to sending "close messages" on subscriptions
that already has been terminated by the client which is unnecessary.

Moreover, this introduces `fn is_closed` to check whether a given
channel is closed without having to send an actual message on the channel.

* cargo fmt

* Update types/src/error.rs

Co-authored-by: default avatarDavid <[email protected]>

* fix nits

* more grumbles

* make rust stable happy

* SubscriptionClosed: add deny unknown fields

Co-authored-by: default avatarDavid <[email protected]>
parent 8a5e36b2
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