Skip to content

Commit 7286a7f

Browse files
authored
Merge pull request #3133 from withchao/pre-release-v3.8.4
fix: pre-release-v3.8.4 startup error caused by merging
2 parents 2c04970 + cfded3f commit 7286a7f

File tree

9 files changed

+13
-88
lines changed

9 files changed

+13
-88
lines changed

config/notification.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
groupCreated:
22
isSendMsg: true
3-
# Reliability level of the message sending.
4-
# Set to 1 to send only when online, 2 for guaranteed delivery.
3+
# Deprecated. Fixed as 1.
54
reliabilityLevel: 1
6-
# This setting is effective only when 'isSendMsg' is true.
7-
# It controls whether to count unread messages.
5+
# Deprecated. Fixed as false.
86
unreadCount: false
9-
# Configuration for offline push notifications.
7+
# Configuration for offline push notifications.
108
offlinePush:
119
# Enables or disables offline push notifications.
1210
enable: false
@@ -325,4 +323,4 @@ conversationSetPrivate:
325323
enable: true
326324
title: burn after reading
327325
desc: burn after reading
328-
ext: burn after reading
326+
ext: burn after reading

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ require (
1313
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
1414
github.com/mitchellh/mapstructure v1.5.0
1515
github.com/openimsdk/protocol v0.0.72-alpha.71
16-
github.com/openimsdk/tools v0.0.50-alpha.71
16+
github.com/openimsdk/tools v0.0.50-alpha.72
1717
github.com/pkg/errors v0.9.1 // indirect
1818
github.com/prometheus/client_golang v1.18.0
1919
github.com/stretchr/testify v1.9.0

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,8 @@ github.com/openimsdk/gomake v0.0.14-alpha.5 h1:VY9c5x515lTfmdhhPjMvR3BBRrRquAUCF
349349
github.com/openimsdk/gomake v0.0.14-alpha.5/go.mod h1:PndCozNc2IsQIciyn9mvEblYWZwJmAI+06z94EY+csI=
350350
github.com/openimsdk/protocol v0.0.72-alpha.71 h1:R3utzOlqepaJWTAmnfJi4ccUM/XIoFasSyjQMOipM70=
351351
github.com/openimsdk/protocol v0.0.72-alpha.71/go.mod h1:WF7EuE55vQvpyUAzDXcqg+B+446xQyEba0X35lTINmw=
352-
github.com/openimsdk/tools v0.0.50-alpha.71 h1:QsjhJSqPnIy3ai6Xh2ic3xW8WtjBJlg5gK+d8qhXnck=
353-
github.com/openimsdk/tools v0.0.50-alpha.71/go.mod h1:B+oqV0zdewN7OiEHYJm+hW+8/Te7B8tHHgD8rK5ZLZk=
352+
github.com/openimsdk/tools v0.0.50-alpha.72 h1:d/vaZjIfvrNp3EeRJEIiamBO7HiPx6CP4wiuq8NpfzY=
353+
github.com/openimsdk/tools v0.0.50-alpha.72/go.mod h1:B+oqV0zdewN7OiEHYJm+hW+8/Te7B8tHHgD8rK5ZLZk=
354354
github.com/pelletier/go-toml/v2 v2.2.2 h1:aYUidT7k73Pcl9nb2gScu7NSrKCSHIDE89b3+6Wq+LM=
355355
github.com/pelletier/go-toml/v2 v2.2.2/go.mod h1:1t835xjRzz80PqgE6HHgN2JOsmgYu/h4qDAS4n929Rs=
356356
github.com/pierrec/lz4/v4 v4.1.21 h1:yOVMLb6qSIDP67pl/5F7RepeKYu/VmTyEXvuMI5d9mQ=

internal/api/msg.go

-8
Original file line numberDiff line numberDiff line change
@@ -391,11 +391,3 @@ func (m *MessageApi) SearchMsg(c *gin.Context) {
391391
func (m *MessageApi) GetServerTime(c *gin.Context) {
392392
a2r.Call(c, msg.MsgClient.GetServerTime, m.Client)
393393
}
394-
395-
func (m *MessageApi) GetStreamMsg(c *gin.Context) {
396-
a2r.Call(c, msg.MsgClient.GetServerTime, m.Client)
397-
}
398-
399-
func (m *MessageApi) AppendStreamMsg(c *gin.Context) {
400-
a2r.Call(c, msg.MsgClient.GetServerTime, m.Client)
401-
}

internal/api/router.go

-2
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,6 @@ func newGinRouter(ctx context.Context, client discovery.SvcDiscoveryRegistry, cf
246246
msgGroup.POST("/batch_send_msg", m.BatchSendMsg)
247247
msgGroup.POST("/check_msg_is_send_success", m.CheckMsgIsSendSuccess)
248248
msgGroup.POST("/get_server_time", m.GetServerTime)
249-
msgGroup.POST("/get_stream_msg", m.GetStreamMsg)
250-
msgGroup.POST("/append_stream_msg", m.AppendStreamMsg)
251249
}
252250
// Conversation
253251
{

internal/tools/cron_test.go

-63
This file was deleted.

pkg/common/config/config.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ func (l *CacheConfig) Enable() bool {
635635
return l.Topic != "" && l.SlotNum > 0 && l.SlotSize > 0
636636
}
637637

638-
var (
638+
const (
639639
DiscoveryConfigFilename = "discovery.yml"
640640
KafkaConfigFileName = "kafka.yml"
641641
LocalCacheConfigFileName = "local-cache.yml"
@@ -657,6 +657,7 @@ var (
657657
RedisConfigFileName = "redis.yml"
658658
ShareFileName = "share.yml"
659659
WebhooksConfigFileName = "webhooks.yml"
660+
NotificationFileName = "notification.yml"
660661
)
661662

662663
func (d *Discovery) GetConfigFileName() string {

pkg/common/config/parse.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ import (
2626
)
2727

2828
const (
29-
FileName = "config.yaml"
30-
NotificationFileName = "notification.yaml"
31-
DefaultFolderPath = "../config/"
29+
FileName = "config.yaml"
3230
)
3331

3432
// return absolude path join ../config/, this is k8s container config path.

tools/seq/internal/main.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import (
2020
"github.com/openimsdk/open-im-server/v3/pkg/common/storage/database/mgo"
2121
"github.com/openimsdk/tools/db/mongoutil"
2222
"github.com/openimsdk/tools/db/redisutil"
23+
"github.com/openimsdk/tools/utils/runtimeenv"
2324
"github.com/redis/go-redis/v9"
2425
"github.com/spf13/viper"
2526
"go.mongodb.org/mongo-driver/bson"
@@ -64,11 +65,11 @@ func readConfig[T any](dir string, name string) (*T, error) {
6465
}
6566

6667
func Main(conf string, del time.Duration) error {
67-
redisConfig, err := readConfig[config.Redis](conf, cmd.RedisConfigFileName)
68+
redisConfig, err := readConfig[config.Redis](conf, config.RedisConfigFileName)
6869
if err != nil {
6970
return err
7071
}
71-
mongodbConfig, err := readConfig[config.Mongo](conf, cmd.MongodbConfigFileName)
72+
mongodbConfig, err := readConfig[config.Mongo](conf, config.MongodbConfigFileName)
7273
if err != nil {
7374
return err
7475
}

0 commit comments

Comments
 (0)