mirror of
https://github.com/safing/portmaster
synced 2025-09-05 12:09:14 +00:00
Migrate puddle lib to new version
This commit is contained in:
parent
603f2fd755
commit
c957f33e74
1 changed files with 8 additions and 1 deletions
|
@ -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{})
|
schema, err := orm.GenerateTableSchema("connections", Conn{})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Add table
Reference in a new issue