Skip to content

Commit

Permalink
chore: fix some typos in comments
Browse files Browse the repository at this point in the history
Signed-off-by: coderwander <[email protected]>
  • Loading branch information
coderwander committed Apr 16, 2024
1 parent cca5336 commit 381fd1b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/templates/env.template
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ REDIS_PORT=16379
# Default: REDIS_PASSWORD=openIM123
REDIS_PASSWORD=openIM123

# Kakfa username to authenticate with the Kafka service.
# Kafka username to authenticate with the Kafka service.
# KAFKA_USERNAME=''

# Port on which Kafka distributed streaming platform is running.
Expand Down
2 changes: 1 addition & 1 deletion deployments/templates/env-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ REDIS_PORT=${REDIS_PORT}
# Default: REDIS_PASSWORD=openIM123
REDIS_PASSWORD=${REDIS_PASSWORD}

# Kakfa username to authenticate with the Kafka service.
# Kafka username to authenticate with the Kafka service.
# KAFKA_USERNAME=${KAFKA_USERNAME}

# Port on which Kafka distributed streaming platform is running.
Expand Down
2 changes: 1 addition & 1 deletion pkg/common/db/controller/msg.go
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ func (db *commonMsgDatabase) deleteMsgRecursion(ctx context.Context, conversatio
}
log.ZDebug(ctx, "doc info", "conversationID", conversationID, "index", index, "docID", msgDocModel.DocID, "len", len(msgDocModel.Msg))
if int64(len(msgDocModel.Msg)) > db.msg.GetSingleGocMsgNum() {
log.ZWarn(ctx, "msgs too large", nil, "lenth", len(msgDocModel.Msg), "docID:", msgDocModel.DocID)
log.ZWarn(ctx, "msgs too large", nil, "length", len(msgDocModel.Msg), "docID:", msgDocModel.DocID)
}
if msgDocModel.IsFull() && msgDocModel.Msg[len(msgDocModel.Msg)-1].Msg.SendTime+(remainTime*1000) < utils.GetCurrentTimestampByMill() {
log.ZDebug(ctx, "doc is full and all msg is expired", "docID", msgDocModel.DocID)
Expand Down

0 comments on commit 381fd1b

Please sign in to comment.