mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-22 15:25:19 +00:00
f
This commit is contained in:
@@ -42,8 +42,6 @@ func (m *migration) Do() error {
|
|||||||
// max concurrency is 5
|
// max concurrency is 5
|
||||||
concurrencyChan := make(chan struct{}, 5)
|
concurrencyChan := make(chan struct{}, 5)
|
||||||
|
|
||||||
var strg Migration
|
|
||||||
|
|
||||||
for _, t := range tables {
|
for _, t := range tables {
|
||||||
|
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
@@ -54,6 +52,7 @@ func (m *migration) Do() error {
|
|||||||
wg.Done()
|
wg.Done()
|
||||||
<-concurrencyChan
|
<-concurrencyChan
|
||||||
}()
|
}()
|
||||||
|
var strg Migration
|
||||||
|
|
||||||
if strings.HasSuffix(tableName, "_users") {
|
if strings.HasSuffix(tableName, "_users") {
|
||||||
strg = userMgr.New(m.store, strings.TrimSuffix(tableName, "_users"))
|
strg = userMgr.New(m.store, strings.TrimSuffix(tableName, "_users"))
|
||||||
|
|||||||
Reference in New Issue
Block a user