You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// https://github.com/redis/go-redis/issues/181ticker:=time.NewTicker(time.Duration(55) *time.Second)
//this is to send "ping" request each second for health-checkgofunc() {
for {
select {
case<-ticker.C:
//send heart-beat signal to check if everything is okif_, err:=client.Ping(context.TODO()).Result(); err!=nil {
log.Errorf("unable to ping redis, error: %+v", err)
} else {
//log.Debug("heartbeat ok!")
}
}
}
}()
消息有延迟感,建议发送信息后, 立即显示在聊天窗口,后台判断是否发送成功。
就像QQ 微信一样, 如果发送失败 显示
The text was updated successfully, but these errors were encountered: