Skip to content

Commit

Permalink
FIx a bug that mutex is passed by value.
Browse files Browse the repository at this point in the history
  • Loading branch information
DarienRaymond committed Nov 28, 2015
1 parent 2948808 commit c290438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy/vmess/protocol/user/userset.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit c290438

Please sign in to comment.