feat(channel): implement thread-safe polling

This commit is contained in:
CaIon
2025-07-12 11:17:08 +08:00
parent 85efea3fb8
commit 23e4e25e9a
3 changed files with 52 additions and 6 deletions

View File

@@ -312,7 +312,7 @@ func TestChannel(c *gin.Context) {
})
return
}
channel, err := model.GetChannelById(channelId, true)
channel, err := model.CacheGetChannel(channelId)
if err != nil {
c.JSON(http.StatusOK, gin.H{
"success": false,