mirror of
https://github.com/micromdm/micromdm/
synced 2026-08-11 20:45:32 +08:00
@@ -159,14 +159,20 @@ func serve(args []string) error {
|
||||
userWorker := user.NewWorker(userDB, sm.PubClient, logger)
|
||||
go userWorker.Run(context.Background())
|
||||
|
||||
bpDB, err := blueprintbuiltin.NewDB(sm.DB, sm.ProfileDB, userDB)
|
||||
bpDB, err := blueprintbuiltin.NewDB(sm.DB, sm.ProfileDB)
|
||||
if err != nil {
|
||||
stdlog.Fatal(err)
|
||||
}
|
||||
|
||||
if err := bpDB.StartListener(sm.PubClient, sm.CommandService); err != nil {
|
||||
stdlog.Fatal(err)
|
||||
}
|
||||
blueprintWorker := blueprint.NewWorker(
|
||||
bpDB,
|
||||
userDB,
|
||||
sm.ProfileDB,
|
||||
sm.CommandService,
|
||||
sm.PubClient,
|
||||
logger,
|
||||
)
|
||||
go blueprintWorker.Run(context.Background())
|
||||
|
||||
ctx := context.Background()
|
||||
httpLogger := log.With(logger, "transport", "http")
|
||||
|
||||
Reference in New Issue
Block a user