mirror of
https://github.com/woodchen-ink/proxy-go.git
synced 2025-07-18 08:31:55 +08:00
fix(metrics): update SQLite driver usage in MetricsDB initialization
- Changed the SQLite driver from "sqlite3" to "sqlite" in the NewMetricsDB function for improved compatibility with the new driver. - This change aligns with the recent dependency update to modernc.org/sqlite, enhancing performance and stability.
This commit is contained in:
parent
54053f3a92
commit
1db0e6ae98
@ -46,7 +46,7 @@ type MetricsDB struct {
|
||||
}
|
||||
|
||||
func NewMetricsDB(dbPath string) (*MetricsDB, error) {
|
||||
db, err := sql.Open("sqlite3", dbPath)
|
||||
db, err := sql.Open("sqlite", dbPath)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user