Merge branch 'main' into v2.3.0release

This commit is contained in:
wangchuxiao
2022-09-30 17:59:46 +08:00
12 changed files with 197 additions and 5 deletions
+5
View File
@@ -11,6 +11,7 @@ import (
fcm "Open_IM/internal/push/fcm"
"Open_IM/internal/push/getui"
jpush "Open_IM/internal/push/jpush"
"Open_IM/internal/push/mobpush"
"Open_IM/pkg/common/config"
"Open_IM/pkg/common/constant"
"Open_IM/pkg/common/kafka"
@@ -45,6 +46,10 @@ func init() {
if config.Config.Push.Fcm.Enable {
offlinePusher = fcm.NewFcm()
}
if config.Config.Push.Mob.Enable {
offlinePusher = mobpush.MobPushClient
}
}
func initPrometheus() {