Merge remote-tracking branch 'origin/errcode' into errcode

# Conflicts:
#	pkg/proto/sdkws/sdkws.pb.go
This commit is contained in:
withchao
2023-05-29 19:12:54 +08:00
16 changed files with 1669 additions and 1447 deletions
-2
View File
@@ -11,8 +11,6 @@ import (
"github.com/OpenIMSDK/Open-IM-Server/pkg/discoveryregistry"
"github.com/OpenIMSDK/Open-IM-Server/pkg/utils"
_ "embed"
"gopkg.in/yaml.v3"
)
+1 -1
View File
@@ -170,7 +170,7 @@ func (c *msgCache) GetMinSeq(ctx context.Context, conversationID string) (int64,
}
func (c *msgCache) getConversationUserMinSeqKey(conversationID, userID string) string {
return conversationUserMinSeq + "g:" + conversationID + "u:" + userID
return conversationUserMinSeq + conversationID + "u:" + userID
}
func (c *msgCache) GetConversationUserMinSeq(ctx context.Context, conversationID string, userID string) (int64, error) {
+1 -1
View File
@@ -99,7 +99,7 @@ func (m *Mongo) createMongoIndex(collection string, isUnique bool, keys ...strin
index := mongo.IndexModel{
Keys: keysDoc,
}
if isUnique == true {
if isUnique {
index.Options = options.Index().SetUnique(true)
}
result, err := indexView.CreateOne(