Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Tulir Asokan
mautrix-whatsapp
Commits
673f5a83
Commit
673f5a83
authored
Nov 06, 2020
by
Tulir Asokan
🐈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix dropped message log
parent
4eacece8
Pipeline
#1788
passed with stages
in 1 minute and 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
user.go
user.go
+2
-2
No files found.
user.go
View file @
673f5a83
...
...
@@ -799,8 +799,8 @@ func (user *User) runMessageRingBuffer() {
select
{
case
user
.
messageOutput
<-
msg
:
default
:
user
.
log
.
Warnln
(
"Buffer is full, dropping message in"
,
msg
.
chat
)
<-
user
.
messageOutput
dropped
:=
<-
user
.
messageOutput
user
.
log
.
Warnln
(
"Buffer is full, dropping message in"
,
dropped
.
chat
)
user
.
messageOutput
<-
msg
}
}
...
...
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