Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hilo-userCenter
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
hujiebin
hilo-userCenter
Commits
71bff772
Commit
71bff772
authored
Dec 26, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update main.go
parent
0f76eaf8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
main.go
main.go
+6
-6
No files found.
main.go
View file @
71bff772
...
...
@@ -190,9 +190,9 @@ func (s *server) Multicast(ctx context.Context, in *userCenter.MulticastMessage)
failed
=
append
(
failed
,
uid
)
}
}
if
len
(
failed
)
>
0
{
mylogrus
.
MyLog
.
Infof
(
"Multicast failed for %v
\n
"
,
failed
)
}
//
if len(failed) > 0 {
//
mylogrus.MyLog.Infof("Multicast failed for %v\n", failed)
//
}
return
&
userCenter
.
MulticastMessageRsp
{
FailedUids
:
failed
},
nil
}
...
...
@@ -496,7 +496,7 @@ func transmitMessage(c biz.TransmitterClient, msgType uint32, data string) (uint
}
func
sendKickMessage
(
c
userCenter
.
RouterClient
,
msg
*
userCenter
.
KickMessage
)
error
{
mylogrus
.
MyLog
.
Infof
(
"sendKickMessage %s"
,
msg
.
String
())
//
mylogrus.MyLog.Infof("sendKickMessage %s", msg.String())
ctx
,
cancel
:=
context
.
WithTimeout
(
context
.
Background
(),
time
.
Second
*
3
)
defer
cancel
()
r
,
err
:=
c
.
KickUser
(
ctx
,
msg
)
...
...
@@ -637,8 +637,8 @@ func main() {
for
{
select
{
case
a
:=
<-
ticker
.
C
:
mylogrus
.
MyLog
.
Infof
(
"Tick at %s"
,
a
.
String
())
case
<-
ticker
.
C
:
//
mylogrus.MyLog.Infof("Tick at %s", a.String())
terminals
:=
termManager
.
GetAll
()
if
terminals
!=
nil
{
if
len
(
*
terminals
)
<=
100
{
...
...
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