Merge 90a222bfece36198f21267ca6a4abf830fe3ade3 into 6b3faaef1aaf1d5154bc81d7fdeb575b6f00f1e0

This commit is contained in:
buvidk1234 2026-05-28 17:38:33 +08:00 committed by GitHub
commit 3dab1b1ddb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View File

@ -208,7 +208,11 @@ func (c *websocketClientConn) pingHandler(appData string) error {
return nil
}
func (c *websocketClientConn) pongHandler(string) error {
func (c *websocketClientConn) pongHandler(appData string) error {
log.ZDebug(context.Background(), "pong handler recv pong", "remoteAddr", c.conn.RemoteAddr(), "appData", appData)
if err := c.setReadDeadline(); err != nil {
return err
}
return nil
}

View File

@ -51,7 +51,7 @@ func NewConversationMongo(db *mongo.Database) (*ConversationMgo, error) {
Keys: bson.D{
{Key: "conversation_id", Value: 1},
},
Options: options.Index().SetUnique(true),
Options: options.Index(),
},
})
if err != nil {