mirror of
				https://github.com/v2fly/v2ray-core.git
				synced 2025-10-31 09:49:40 +00:00 
			
		
		
		
	FIx a bug that mutex is passed by value.
This commit is contained in:
		
							parent
							
								
									29488087a8
								
							
						
					
					
						commit
						c2904383b3
					
				| @ -86,7 +86,7 @@ func (us *TimedUserSet) AddUser(user config.User) error { | ||||
| 	return nil | ||||
| } | ||||
| 
 | ||||
| func (us TimedUserSet) GetUser(userHash []byte) (config.User, int64, bool) { | ||||
| func (us *TimedUserSet) GetUser(userHash []byte) (config.User, int64, bool) { | ||||
| 	defer us.access.RUnlock() | ||||
| 	us.access.RLock() | ||||
| 	pair, found := us.userHash[string(userHash)] | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 V2Ray
						V2Ray