forked from mtusi2026/mtusi2026lab4
feat: restricted S3 credentials, orphan reconciler, upload limits (grade 4)
This commit is contained in:
+2
-4
@@ -66,10 +66,8 @@ func run(log *slog.Logger) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := objects.EnsureBucket(context.Background()); err != nil {
|
||||
log.Error("s3 bucket bootstrap failed", "err", err)
|
||||
}
|
||||
attachments := service.NewAttachmentService(chats, store, objects, cfg.MaxUploadBytes, cfg.MaxImagePixels)
|
||||
attachments := service.NewAttachmentService(chats, store, objects, cfg.MaxUploadBytes, cfg.MaxImagePixels,
|
||||
cfg.MaxConcurrentUploads, cfg.MaxConcurrentDecodes)
|
||||
|
||||
deps := []handler.Pinger{store.Ping, sessions.Ping, objects.Ping}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user