mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-05-03 22:33:10 +02:00
Remove unnecessary assignments to the blank identifier.
This commit is contained in:
parent
023f2715f5
commit
b8c9e816b3
|
@ -456,13 +456,13 @@ func (h *Hub) GetSessionByPublicId(sessionId string) Session {
|
|||
}
|
||||
|
||||
h.mu.Lock()
|
||||
session, _ := h.sessions[data.Sid]
|
||||
session := h.sessions[data.Sid]
|
||||
h.mu.Unlock()
|
||||
return session
|
||||
}
|
||||
|
||||
func (h *Hub) checkExpiredSessions(now time.Time) {
|
||||
for s, _ := range h.expiredSessions {
|
||||
for s := range h.expiredSessions {
|
||||
if s.IsExpired(now) {
|
||||
h.mu.Unlock()
|
||||
log.Printf("Closing expired session %s (private=%s)", s.PublicId(), s.PrivateId())
|
||||
|
|
|
@ -245,7 +245,7 @@ func (m *mcuJanus) doReconnect() {
|
|||
m.mu.Unlock()
|
||||
|
||||
m.muClients.Lock()
|
||||
for client, _ := range m.clients {
|
||||
for client := range m.clients {
|
||||
go client.NotifyReconnected()
|
||||
}
|
||||
m.muClients.Unlock()
|
||||
|
|
Loading…
Reference in a new issue