Skip to content

Commit 5477466

Browse files
committed
fix: use discrete return type instead of impl
1 parent bb3a44a commit 5477466

File tree

1 file changed

+3
-3
lines changed
  • yellowstone-grpc-client/src

1 file changed

+3
-3
lines changed

yellowstone-grpc-client/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ impl GeyserGrpcBuilder {
244244
fn build(
245245
self,
246246
channel: Channel,
247-
) -> GeyserGrpcBuilderResult<GeyserGrpcClient<impl Interceptor>> {
247+
) -> GeyserGrpcBuilderResult<GeyserGrpcClient<InterceptorXToken>> {
248248
let interceptor = InterceptorXToken {
249249
x_token: self.x_token,
250250
x_request_snapshot: self.x_request_snapshot,
@@ -270,12 +270,12 @@ impl GeyserGrpcBuilder {
270270
))
271271
}
272272

273-
pub async fn connect(self) -> GeyserGrpcBuilderResult<GeyserGrpcClient<impl Interceptor>> {
273+
pub async fn connect(self) -> GeyserGrpcBuilderResult<GeyserGrpcClient<InterceptorXToken>> {
274274
let channel = self.endpoint.connect().await?;
275275
self.build(channel)
276276
}
277277

278-
pub fn connect_lazy(self) -> GeyserGrpcBuilderResult<GeyserGrpcClient<impl Interceptor>> {
278+
pub fn connect_lazy(self) -> GeyserGrpcBuilderResult<GeyserGrpcClient<InterceptorXToken>> {
279279
let channel = self.endpoint.connect_lazy();
280280
self.build(channel)
281281
}

0 commit comments

Comments
 (0)