Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
jsonrpsee
Commits
c4f0f497
Unverified
Commit
c4f0f497
authored
Jun 29, 2022
by
James Wilson
Committed by
GitHub
Jun 29, 2022
Browse files
Make comment more verbose
parent
997706a3
Pipeline
#200815
passed with stages
in 5 minutes and 37 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
core/src/server/rpc_module.rs
View file @
c4f0f497
...
...
@@ -1049,7 +1049,10 @@ impl SubscriptionSink {
impl
Drop
for
SubscriptionSink
{
fn
drop
(
&
mut
self
)
{
if
let
Some
(
id
)
=
self
.id
.take
()
{
// Subscription was never accepted / rejected.
// Subscription was never accepted / rejected. As such,
// we default to assuming that the params were invalid,
// because that's how the previous PendingSubscription logic
// worked.
self
.inner
.send_error
(
id
,
ErrorCode
::
InvalidParams
.into
());
}
else
if
self
.is_active_subscription
()
{
self
.subscribers
.lock
()
.remove
(
&
self
.uniq_sub
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment