test
This commit is contained in:
parent
0ac4dda50d
commit
a04debbc83
2
obj.go
2
obj.go
@ -341,7 +341,7 @@ func addObjUser(name string) (int64, error) {
|
|||||||
func getObjUserID(s string) int64 {
|
func getObjUserID(s string) int64 {
|
||||||
if v, ok := cacheObjUser.Load(s); ok {
|
if v, ok := cacheObjUser.Load(s); ok {
|
||||||
u := v.(ChatWarsUser)
|
u := v.(ChatWarsUser)
|
||||||
return n.ObjID64
|
return u.ObjID64
|
||||||
} else {
|
} else {
|
||||||
objID64, err := addObjUser(s)
|
objID64, err := addObjUser(s)
|
||||||
logOnError(err, "getObjUserID")
|
logOnError(err, "getObjUserID")
|
||||||
|
Loading…
Reference in New Issue
Block a user