90a222bfec
6b3faaef1a
@ -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
@ -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 {