Commit 55efba5a by huangchengyi

1.0

parent 27f0c4a2
Showing with 3 additions and 3 deletions
package controller
import (
"fmt"
"github.com/gin-gonic/gin"
"github.com/syyongx/php2go"
"go_sku_server/pkg/common"
"go_sku_server/pkg/logger"
"go_sku_server/service"
"sync"
"time"
......@@ -104,8 +104,8 @@ func Synchronization(ctx *gin.Context) {
return true
})
case <- time.After(time.Second *2):
fmt.Println("read time out")
case <- time.After(time.Second *4):
logger.Log("协程超时","sku",1)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment