Commit 673f5a83 authored by Tulir Asokan's avatar Tulir Asokan 🐈

Fix dropped message log

parent 4eacece8
Pipeline #1788 passed with stages
in 1 minute and 20 seconds
......@@ -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
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment