Skip to content

Commit

Permalink
chore: removal of database observer (#4235)
Browse files Browse the repository at this point in the history
Co-authored-by: Benedict Homuth <bhomuth@inovex.de>
  • Loading branch information
BenedictHomuth and Benedict Homuth committed Jun 19, 2024
1 parent 27f0e9c commit bcf3d2f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 43 deletions.
4 changes: 1 addition & 3 deletions server/src/database/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,13 @@ import (

// Database is the main class within this package and will be extended by several receiver functions
type Database struct {
db *bun.DB
observer []Observer
db *bun.DB
}

// New creates a new instance of Database
func New(db *sql.DB, verbose bool) *Database {
d := new(Database)
d.db = bun.NewDB(db, pgdialect.New())
d.observer = []Observer{}

// configuration of database
maxOpenConnections := 4 * runtime.GOMAXPROCS(0)
Expand Down
22 changes: 0 additions & 22 deletions server/src/database/database_observer.go

This file was deleted.

18 changes: 0 additions & 18 deletions server/src/database/database_observer_test.go

This file was deleted.

0 comments on commit bcf3d2f

Please sign in to comment.