Don't lock around appending to subscribers list
This commit is contained in:
		
							parent
							
								
									f29268776b
								
							
						
					
					
						commit
						922b3fc009
					
				@ -54,9 +54,7 @@ func (h *Hub) Sub(s *Subscription) {
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	h.lock.Lock()
 | 
			
		||||
	h.subscribers = append(h.subscribers, s)
 | 
			
		||||
	h.lock.Unlock()
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
func (h *Hub) Info() map[string]map[string]uint {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user