Skip to content

Commit

Permalink
Close sqlite db
Browse files Browse the repository at this point in the history
  • Loading branch information
lixmal committed Feb 19, 2024
1 parent 063a93e commit 4082f66
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion management/server/sqlite_store.go
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,11 @@ func (s *SqliteStore) SaveUserLastLogin(accountID, userID string, lastLogin time

// Close is noop in Sqlite
func (s *SqliteStore) Close() error {
return nil
db, err := s.db.DB()
if err != nil {
return fmt.Errorf("get db: %w", err)
}
return db.Close()
}

// GetStoreEngine returns SqliteStoreEngine
Expand Down

0 comments on commit 4082f66

Please sign in to comment.