Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds feature for users to customize connections created by the pool #89

Merged
merged 8 commits into from
Dec 14, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixed typo
agersant committed Dec 12, 2020
commit 343e8e087fdb006066687a60653453fada53747f
2 changes: 1 addition & 1 deletion bb8/tests/test.rs
Original file line number Diff line number Diff line change
@@ -782,7 +782,7 @@ async fn test_customize_connection_acquire() {
assert_eq!(connection_2.custom_field, 2);
}

// Connection don't get customized again on re-use
// Connections don't get customized again on re-use
let connection_1_or_2 = pool.get().await.unwrap();
assert!(connection_1_or_2.custom_field == 1 || connection_1_or_2.custom_field == 2);
}