mirror of
https://github.com/sot-tech/mochi.git
synced 2026-05-10 14:19:09 -07:00
various small fixes
This commit is contained in:
committed by
Jimmy Zelinskie
parent
b1f186b665
commit
3b54069a1b
@@ -41,8 +41,8 @@ func (s *clientStore) CreateClient(clientID string) error {
|
||||
|
||||
func (s *clientStore) FindClient(peerID string) (bool, error) {
|
||||
clientID := clientid.New(peerID)
|
||||
s.Lock()
|
||||
defer s.Unlock()
|
||||
s.RLock()
|
||||
defer s.RUnlock()
|
||||
|
||||
_, ok := s.clientIDs[clientID]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user