|
@@ -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{},
|