Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
speech_nlu_parse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵文静
speech_nlu_parse
Commits
6d25bf66
Commit
6d25bf66
authored
May 16, 2025
by
赵文静
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加日志
parent
3dca8b4b
Pipeline
#5201
passed with stage
in 0 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
model/speech.go
model/speech.go
+1
-1
service/connect/find_grpc.go
service/connect/find_grpc.go
+5
-1
No files found.
model/speech.go
View file @
6d25bf66
...
...
@@ -50,7 +50,7 @@ type SpeechWsResp struct {
CurrentPage
int
`json:"currentPage"`
TotalPages
int
`json:"totalPages"`
ItemsPerPage
int
`json:"itemsPerPage"`
Match
int
`json:"match"`
Match
int
erface
{}
`json:"match"`
Content
interface
{}
`json:"content"`
//Content []struct {
// LinkUrl string `json:"linkUrl"`
...
...
service/connect/find_grpc.go
View file @
6d25bf66
...
...
@@ -32,7 +32,11 @@ func GrpcConn(serverName string) (*grpc.ClientConn, error) {
if
err
!=
nil
{
return
nil
,
fmt
.
Errorf
(
"consul client init failed: %v"
,
err
)
}
entries
,
_
,
_
:=
client
.
Health
()
.
Service
(
serverName
,
""
,
true
,
nil
)
entries
,
_
,
err
:=
client
.
Health
()
.
Service
(
serverName
,
""
,
true
,
nil
)
if
err
!=
nil
{
global
.
Logger
.
Errorf
(
"consul get service %s failed: %v"
,
serverName
,
err
)
return
nil
,
fmt
.
Errorf
(
"consul get service %s failed: %v"
,
serverName
,
err
)
}
// 健康实例检查
if
len
(
entries
)
==
0
{
...
...
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