This commit is contained in:
parent
dcbf450d1c
commit
26417a0702
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue