Skip to content

Commit

Permalink
feat: add PendingSubscriptionSink::method_name (#1413)
Browse files Browse the repository at this point in the history
Unify the API because the `SubscriptionSink` is exposing it
and it may be useful in some context for debugging.
  • Loading branch information
niklasad1 committed Jun 26, 2024
1 parent 717e9fe commit 9de9317
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions core/src/server/subscription.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,11 @@ impl PendingSubscriptionSink {
pub fn connection_id(&self) -> ConnectionId {
self.uniq_sub.conn_id
}

/// Get the method name.
pub fn method_name(&self) -> &str {
self.method
}
}

/// Represents a single subscription that hasn't been processed yet.
Expand Down

0 comments on commit 9de9317

Please sign in to comment.