耳机阻抗上报
This commit is contained in:
@@ -97,6 +97,14 @@ func main() {
|
||||
log.Info("device persist task disabled")
|
||||
}
|
||||
|
||||
if cfg.EnableImpedancePersistTask {
|
||||
impedanceRepo := repository.NewHeadphoneImpedanceRepository(db)
|
||||
impedancePersistTask := task.NewImpedancePersistTask(rdb, impedanceRepo, log)
|
||||
impedancePersistTask.Start(5 * time.Minute)
|
||||
} else {
|
||||
log.Info("impedance persist task disabled")
|
||||
}
|
||||
|
||||
s3Storage, err := storage.NewS3Storage(context.Background(), cfg.S3)
|
||||
if err != nil {
|
||||
log.Fatal("s3 client init failed", zap.Error(err))
|
||||
|
||||
Reference in New Issue
Block a user