Shouldn't ThinData be used for a DB pool? #1153
Closed
lucascompython
started this conversation in
General
Replies: 1 comment 1 reply
-
Yes, Since the type was added recently, we haven't updated all the examples to new best practices yet. PRs welcome :) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In the postgres database example, the db pool is wrapped in
web::Data
, I think this could be just aweb::ThinData
since the pool internally uses anArc
:Please correct me if wrong.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions