Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
doc-service
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eifel邓鹏飞
doc-service
Commits
e721cf6d
Commit
e721cf6d
authored
Sep 25, 2024
by
Bess严根旺
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改启动方式
parent
dd176972
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
main.go
main.go
+6
-5
No files found.
main.go
View file @
e721cf6d
...
...
@@ -168,19 +168,20 @@ func run() error {
Addr
:
httpPort
,
Handler
:
tool
.
HttpInterceptor
(
serviceMux
),
}
handleSignal
(
ctx
,
srv
,
grpcServer
,
localIP
,
projectConf
)
return
srv
.
ListenAndServe
()
}
func
main
()
{
//执行转换
go
console
.
DoAliData
()
//获取转换进度
go
console
.
GetConvert
()
//回调
go
console
.
DoCallback
()
handleSignal
(
ctx
,
srv
,
grpcServer
,
localIP
,
projectConf
)
return
srv
.
ListenAndServe
()
}
func
main
()
{
if
err
:=
run
();
err
!=
nil
&&
!
errors
.
Is
(
err
,
http
.
ErrServerClosed
)
{
panic
(
err
)
}
...
...
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