feat: 实现管理后台 A3 注册群消息概览与 metrics 门禁
This commit is contained in:
+4
-1
@@ -145,7 +145,7 @@ func runServe(ctx context.Context, cfg config.Config) error {
|
||||
Logger: slog.Default(),
|
||||
ConnControl: brk,
|
||||
})
|
||||
_ = group.New(group.Config{
|
||||
groupApp := group.New(group.Config{
|
||||
DB: db,
|
||||
Talk: idApp,
|
||||
Online: presApp,
|
||||
@@ -165,6 +165,9 @@ func runServe(ctx context.Context, cfg config.Config) error {
|
||||
Locks: loginLocks,
|
||||
Logger: slog.Default(),
|
||||
TrustedProxies: trustedNets,
|
||||
Groups: groupApp,
|
||||
Config: cfg,
|
||||
Version: Version,
|
||||
KickEndpoint: func(kickCtx context.Context, endpointID string) (bool, error) {
|
||||
if _, found := brk.ConnInfoOf(endpointID); !found {
|
||||
return false, nil
|
||||
|
||||
Reference in New Issue
Block a user