Skip to content

Commit

Permalink
Show pool_size option in examples
Browse files Browse the repository at this point in the history
It's the most common thing to tweak, so might as well show it off.
  • Loading branch information
sfackler committed Jan 7, 2016
1 parent 51c6aef commit 9339a6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ extern crate r2d2_foodb;

fn main() {
let config = r2d2::Config::builder()
.pool_size(15)
.error_handler(Box::new(r2d2::LoggingErrorHandler))
.build();
let manager = r2d2_foodb::FooConnectionManager::new("localhost:1234");
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
//!
//! fn main() {
//! let config = r2d2::Config::builder()
//! .pool_size(15)
//! .error_handler(Box::new(r2d2::LoggingErrorHandler))
//! .build();
//! let manager = r2d2_foodb::FooConnectionManager::new("localhost:1234");
Expand Down

0 comments on commit 9339a6a

Please sign in to comment.