Skip to content

Commit

Permalink
Migrate puddle lib to new version
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaavi committed Dec 21, 2022
1 parent 603f2fd commit c957f33
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion netquery/database.go
Expand Up @@ -131,7 +131,14 @@ func New(path string) (*Database, error) {
}
}

pool := puddle.NewPool(constructor, destructor, 10)
pool, err := puddle.NewPool(&puddle.Config[*sqlite.Conn]{
Constructor: constructor,
Destructor: destructor,
MaxSize: 10,
})
if err != nil {
return nil, err
}

schema, err := orm.GenerateTableSchema("connections", Conn{})
if err != nil {
Expand Down

0 comments on commit c957f33

Please sign in to comment.