Remove no longer needed mutex for guarding goose

Signed-off-by: Brian Meek <brian@hntlabs.com>
This commit is contained in:
Brian Meek 2022-08-03 10:42:32 -07:00
parent d8ae73909b
commit 258d3e7a48
No known key found for this signature in database
GPG key ID: ACBD71263BF42D00

View file

@ -48,9 +48,6 @@ type Migration struct {
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
type Migrator struct {
db *sql.DB
@ -84,8 +81,6 @@ func (m *Migrator) AddMigrations(migrations ...Migration) {
// Up executes all migrations in order they were added.
func (m *Migrator) Up(ctx context.Context) error {
gooseMutex.Lock()
defer gooseMutex.Unlock()
var (
err error
dendriteVersion = internal.VersionString()