mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-11-06 05:12:10 +08:00
refactor: unified naming for module startup functions.
This commit is contained in:
parent
993e97019a
commit
6e00ed3a02
@ -243,7 +243,7 @@ func checkKafka(config *config.GlobalConfig) error {
|
||||
|
||||
for _, requiredTopic := range requiredTopics {
|
||||
if !isTopicPresent(requiredTopic, topics) {
|
||||
return errs.Wrap(err, fmt.Sprintf("Kafka doesn't contain topic: %v", requiredTopic))
|
||||
return errs.WrapMsg(err, fmt.Sprintf("Kafka doesn't contain topic: %v", requiredTopic))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -41,7 +41,7 @@ func CheckDirectory(cfg *config.Config) error {
|
||||
for _, targetDir := range cfg.TargetDirs {
|
||||
err := filepath.Walk(targetDir, func(path string, info os.FileInfo, err error) error {
|
||||
if err != nil {
|
||||
return errs.Wrap(err, fmt.Sprintf("error walking directory '%s'", targetDir))
|
||||
return errs.WrapMsg(err, fmt.Sprintf("error walking directory '%s'", targetDir))
|
||||
}
|
||||
|
||||
// Skip if the directory is in the ignore list
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user