Remove some fmt.Println

This commit is contained in:
Neil Alexander 2021-01-07 17:08:56 +00:00
parent 4506b50828
commit e91d71ebca
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
2 changed files with 1 additions and 5 deletions

View file

@ -161,11 +161,10 @@ func (t *EDUCache) RemoveUser(userID, roomID string) int64 {
return t.latestSyncPosition
}
t.latestSyncPosition++
timer.Stop()
delete(roomData.userSet, userID)
t.latestSyncPosition++
t.data[roomID].syncPosition = t.latestSyncPosition
return t.latestSyncPosition

View file

@ -16,7 +16,6 @@ package consumers
import (
"encoding/json"
"fmt"
"github.com/Shopify/sarama"
"github.com/matrix-org/dendrite/eduserver/api"
@ -98,9 +97,7 @@ func (s *OutputTypingEventConsumer) onMessage(msg *sarama.ConsumerMessage) error
)
}
fmt.Println("Advancing typing position to", typingPos)
s.streams.TypingStreamProvider.Advance(typingPos)
fmt.Println("Advanced typing position to", typingPos)
return nil
}