Skip to content

Commit

Permalink
Set proper return type from consumer info
Browse files Browse the repository at this point in the history
  • Loading branch information
Jarema committed Jun 3, 2022
1 parent ce36042 commit 50eefe3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion async-nats/src/jetstream/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ impl Stream {
error.code, error.description
),
))),
Response::Ok(info) => Ok(Consumer::new(T::try_from_consumer_config(info)?)),
Response::Ok::<ConsumerInfo>(info) => {
Ok(Consumer::new(T::try_from_consumer_config(info.config)?))
}
}
}

Expand Down

0 comments on commit 50eefe3

Please sign in to comment.