test
This commit is contained in:
parent
da025e4012
commit
787a6f04b6
2
obj.go
2
obj.go
@ -116,7 +116,7 @@ func addObjMsg(msgID64 int64, msgChatID64 int64, msgUserID64 int64, msgSenderUse
|
|||||||
func getObjMsg(objId int64) (*ChatWarsMessage, error) {
|
func getObjMsg(objId int64) (*ChatWarsMessage, error) {
|
||||||
if v, ok := cacheObjMsg.Load(objId); ok {
|
if v, ok := cacheObjMsg.Load(objId); ok {
|
||||||
m := v.(ChatWarsMessage)
|
m := v.(ChatWarsMessage)
|
||||||
return *m, nil
|
return &m, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
var m *ChatWarsMessage
|
var m *ChatWarsMessage
|
||||||
|
Loading…
Reference in New Issue
Block a user