Explorar o código

wip:订单编号池

wangshan hai 1 ano
pai
achega
4e83c403a6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      public/ordercode.go

+ 1 - 1
public/ordercode.go

@@ -26,7 +26,7 @@ func (o *orderCode) gc() {
 	})
 	})
 	time.AfterFunc(24*time.Hour, o.gc)
 	time.AfterFunc(24*time.Hour, o.gc)
 }
 }
-func init() {
+func OrderCodePoolInit() {
 	VarOrderCode = &orderCode{
 	VarOrderCode = &orderCode{
 		Pool: make(chan string, 20),
 		Pool: make(chan string, 20),
 		All:  &sync.Map{},
 		All:  &sync.Map{},