mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-09-13 21:54:33 +08:00
Merge 90a222bfece36198f21267ca6a4abf830fe3ade3 into 6b3faaef1aaf1d5154bc81d7fdeb575b6f00f1e0
This commit is contained in:
commit
3dab1b1ddb
@ -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
|
||||
}
|
||||
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user