mirror of
https://github.com/aljazceru/cdk.git
synced 2026-02-23 05:56:02 +01:00
chore: code style (#1056)
This commit is contained in:
@@ -194,20 +194,20 @@ where
|
||||
}
|
||||
|
||||
/// Try to subscribe to a specific event
|
||||
pub async fn try_subscribe<P: AsRef<SubId> + TryInto<Vec<Index<I>>>>(
|
||||
&self,
|
||||
params: P,
|
||||
) -> Result<ActiveSubscription<T, I>, P::Error> {
|
||||
pub async fn try_subscribe<P>(&self, params: P) -> Result<ActiveSubscription<T, I>, P::Error>
|
||||
where
|
||||
P: AsRef<SubId> + TryInto<Vec<Index<I>>>,
|
||||
{
|
||||
Ok(self
|
||||
.subscribe_inner(params.as_ref().clone(), params.try_into()?)
|
||||
.await)
|
||||
}
|
||||
|
||||
/// Subscribe to a specific event
|
||||
pub async fn subscribe<P: AsRef<SubId> + Into<Vec<Index<I>>>>(
|
||||
&self,
|
||||
params: P,
|
||||
) -> ActiveSubscription<T, I> {
|
||||
pub async fn subscribe<P>(&self, params: P) -> ActiveSubscription<T, I>
|
||||
where
|
||||
P: AsRef<SubId> + Into<Vec<Index<I>>>,
|
||||
{
|
||||
self.subscribe_inner(params.as_ref().clone(), params.into())
|
||||
.await
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user