Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄成意
/
go_sku_server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
55efba5a
authored
Nov 27, 2020
by
huangchengyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
1.0
parent
27f0c4a2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
controller/sku_controller.go
controller/sku_controller.go
View file @
55efba5a
package
controller
package
controller
import
(
import
(
"fmt"
"github.com/gin-gonic/gin"
"github.com/gin-gonic/gin"
"github.com/syyongx/php2go"
"github.com/syyongx/php2go"
"go_sku_server/pkg/common"
"go_sku_server/pkg/common"
"go_sku_server/pkg/logger"
"go_sku_server/service"
"go_sku_server/service"
"sync"
"sync"
"time"
"time"
...
@@ -104,8 +104,8 @@ func Synchronization(ctx *gin.Context) {
...
@@ -104,8 +104,8 @@ func Synchronization(ctx *gin.Context) {
return
true
return
true
})
})
case
<-
time
.
After
(
time
.
Second
*
2
)
:
case
<-
time
.
After
(
time
.
Second
*
4
)
:
fmt
.
Println
(
"read time out"
)
logger
.
Log
(
"协程超时"
,
"sku"
,
1
)
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment