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:
wood chen 2024-12-03 17:59:20 +08:00
parent 54053f3a92
commit 1db0e6ae98

View File

@ -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
}