Run "go fmt ./..."

This commit is contained in:
RPRX 2023-06-18 17:42:17 +00:00 committed by yuhan6665
parent 667279af57
commit ee21763928
9 changed files with 17 additions and 17 deletions

View file

@ -30,14 +30,14 @@ import (
type userByEmail struct {
sync.Mutex
cache map[string]*protocol.MemoryUser
defaultLevel uint32
cache map[string]*protocol.MemoryUser
defaultLevel uint32
}
func newUserByEmail(config *DefaultConfig) *userByEmail {
return &userByEmail{
cache: make(map[string]*protocol.MemoryUser),
defaultLevel: config.Level,
cache: make(map[string]*protocol.MemoryUser),
defaultLevel: config.Level,
}
}
@ -68,7 +68,7 @@ func (v *userByEmail) Get(email string) (*protocol.MemoryUser, bool) {
if !found {
id := uuid.New()
rawAccount := &vmess.Account{
Id: id.String(),
Id: id.String(),
}
account, err := rawAccount.AsAccount()
common.Must(err)