redis replace go redis

pull/236/head
Gordon 3 years ago
parent d00641a73c
commit ad8086d2b6

@ -38,7 +38,7 @@ func (d *DataBases) NewSetMessageToCache(msgList []*pbChat.MsgDataToMQ, uid stri
d.rdb.Expire(ctx, key, time.Second*time.Duration(config.Config.MsgCacheTimeout))
}
if len(failedList) != 0 {
return errors.New(fmt.Sprintf("set msg to cache failed, failed lists: %s", failedList))
return errors.New(fmt.Sprintf("set msg to cache failed, failed lists: %q", failedList))
}
return nil
}

@ -309,7 +309,7 @@ func (d *DataBases) SetMessageToCache(msgList []*pbChat.MsgDataToMQ, uid string,
}
}
if len(failedList) != 0 {
return errors.New(fmt.Sprintf("set msg to cache failed, failed lists: %s", failedList))
return errors.New(fmt.Sprintf("set msg to cache failed, failed lists: %q", failedList))
}
return nil
}

Loading…
Cancel
Save