This commit is contained in:
Leufolium 2024-07-28 18:16:58 +08:00
parent dcbf450d1c
commit 26417a0702
1 changed files with 3 additions and 3 deletions

View File

@ -15,6 +15,9 @@ import (
func main() { func main() {
fmt.Println("Start importing...") fmt.Println("Start importing...")
cryptoService := new(myCrypto.CryptoService)
cryptoService.Init()
client, err := mongo.NewMongo() client, err := mongo.NewMongo()
if err != nil { if err != nil {
fmt.Printf("mongo client init fail : %v", err) fmt.Printf("mongo client init fail : %v", err)
@ -656,9 +659,6 @@ func main() {
defer outfile.Close() defer outfile.Close()
writer := bufio.NewWriter(outfile) writer := bufio.NewWriter(outfile)
cryptoService := &myCrypto.CryptoService{}
cryptoService.Init()
zoneMp := make(map[int64]*dbstruct.Zone, 0) zoneMp := make(map[int64]*dbstruct.Zone, 0)
for _, zone := range zones { for _, zone := range zones {
zoneMp[zone.GetMid()] = zone zoneMp[zone.GetMid()] = zone