aohanhongzhi

Results 27 comments of aohanhongzhi

> Need to upgrade Android Studio to 4.2 (beta now), try this: https://developer.android.com/studio/archive?hl=zh-cn ![image](https://user-images.githubusercontent.com/37319319/169287982-d40b13a5-cba5-4f31-adee-0039564903f5.png) ` FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring project...

> If codecs are missing, a dialog is now displayed. With the hint to install these packages. > > ![Screenshot](https://user-images.githubusercontent.com/3152567/185500652-85d0fc46-7763-4793-bef7-934efd6accec.png) thanks for your replay, But I didnt find the dialog...

> Ok, forgot to mention. I installed the code for this last night. You can then test it with the next beta. thank you

我自己也替换了下,没想到这里有PR了。建议吧logrus的行号和代码文件整出来。 我的效果如下: ![image](https://user-images.githubusercontent.com/37319319/169203425-2465275b-d074-44ea-be0f-80e4724393ee.png)

优化了下,直接点击就可以跳转到打日志的位置,方便调试。 ![image](https://user-images.githubusercontent.com/37319319/169243364-c6304bb2-f365-4e8c-a0fb-0bf9b1df7f88.png) 实现 ```go import nested "github.com/antonfisher/nested-logrus-formatter" import "github.com/sirupsen/logrus" func init() { logrus.SetLevel(logrus.InfoLevel) logrus.SetReportCaller(true) logrus.SetFormatter(&nested.Formatter{ HideKeys: true, FieldsOrder: []string{"component", "category", "req"}, CustomCallerFormatter: func(f *runtime.Frame) string { return fmt.Sprintf(" ( %s:%d...

How to get the resolution of the computer screen and center the whole program interface?

延迟得原因:我这里有一个情况是 auth鉴权的时候,使用redis,但是redis响应特别长。导致消息延迟或者发送失败。

redis存在问题,可以通过增加心跳解决。 ![image](https://github.com/gzydong/LumenIM/assets/37319319/c8961eeb-b9d9-403c-907f-1c6db6cceacf) ```go // https://github.com/redis/go-redis/issues/181 ticker := time.NewTicker(time.Duration(55) * time.Second) //this is to send "ping" request each second for health-check go func() { for { select { case

建议开发历史消息搜索功能