Chris Rhodes 9 gadi atpakaļ
vecāks
revīzija
7efe4ccfee
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      state.go

+ 1 - 1
state.go

@@ -325,7 +325,7 @@ func (s *State) Channel(channelID string) (*Channel, error) {
 		return nil, ErrNilState
 	}
 	
-	s.Rlock()
+	s.RLock()
 	defer s.RUnlock()
 
 	if c, ok := s.channelMap[channelID]; ok {