mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-10 23:53:09 -06:00
Remove no longer needed mutex for guarding goose
Signed-off-by: Brian Meek <brian@hntlabs.com>
This commit is contained in:
parent
d8ae73909b
commit
258d3e7a48
|
|
@ -48,9 +48,6 @@ type Migration struct {
|
||||||
Down func(ctx context.Context, txn *sql.Tx) error
|
Down func(ctx context.Context, txn *sql.Tx) error
|
||||||
}
|
}
|
||||||
|
|
||||||
// Gaurs the internal state of Goose from being modified by concurrent tests or goroutines
|
|
||||||
var gooseMutex sync.Mutex
|
|
||||||
|
|
||||||
// Migrator
|
// Migrator
|
||||||
type Migrator struct {
|
type Migrator struct {
|
||||||
db *sql.DB
|
db *sql.DB
|
||||||
|
|
@ -84,8 +81,6 @@ func (m *Migrator) AddMigrations(migrations ...Migration) {
|
||||||
|
|
||||||
// Up executes all migrations in order they were added.
|
// Up executes all migrations in order they were added.
|
||||||
func (m *Migrator) Up(ctx context.Context) error {
|
func (m *Migrator) Up(ctx context.Context) error {
|
||||||
gooseMutex.Lock()
|
|
||||||
defer gooseMutex.Unlock()
|
|
||||||
var (
|
var (
|
||||||
err error
|
err error
|
||||||
dendriteVersion = internal.VersionString()
|
dendriteVersion = internal.VersionString()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue