forked from mtusi2026/mtusi2026lab6
lab6
This commit is contained in:
@@ -22,6 +22,7 @@ import (
|
||||
"mtusi-messenger/internal/domain"
|
||||
"mtusi-messenger/internal/imagecheck"
|
||||
"mtusi-messenger/internal/platform/objectstore"
|
||||
"mtusi-messenger/internal/telemetry"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -239,6 +240,7 @@ func (s *Service) Upload(ctx context.Context, input UploadInput) (domain.Attachm
|
||||
}
|
||||
|
||||
created.Variants = []domain.Variant{}
|
||||
telemetry.RecordJobAccepted(ctx, created.PipelineVersion)
|
||||
|
||||
return created, nil
|
||||
}
|
||||
@@ -562,6 +564,7 @@ func (s *Service) Complete(
|
||||
}
|
||||
|
||||
queued.Variants = []domain.Variant{}
|
||||
telemetry.RecordJobAccepted(ctx, queued.PipelineVersion)
|
||||
|
||||
return queued, nil
|
||||
}
|
||||
|
||||
@@ -228,7 +228,6 @@ func (s *Sweeper) deleteObject(ctx context.Context, key string) bool {
|
||||
|
||||
if !errors.Is(err, domain.ErrNotFound) {
|
||||
s.log.WarnContext(ctx, "sweep delete failed",
|
||||
slog.String("object_key", key),
|
||||
slog.Any("error", err),
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user