Skip to content

Passing diesel_async to tonic service - the trait bound is not satisfied #80

Answered by weiznich
mpiorowski asked this question in Q&A
Discussion options

You must be logged in to vote

To repeat what I've written above again:

diesel_async::pooled_connection::deadpool::Pool and deadpool::Pool are differente incompatible types. You cannot use the in exactly the same position. By looking at the documentation of the diesel_async provided type you can see that this type is a custom type def of the deadpool type with some changes. Most importantly it already includes the AsyncConnectionManager part, so if you include that again if you use that type it is expected that it produces compiler error.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@mpiorowski
Comment options

@weiznich
Comment options

Answer selected by mpiorowski
@mpiorowski
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants