Chris Rhodes %!s(int64=9) %!d(string=hai) anos
pai
achega
7efe4ccfee
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 {