Skip to content

Commit

Permalink
[devscout] adds missing binding for S3RequestOption (#2607)
Browse files Browse the repository at this point in the history
this prevents the scaling pulsar smtp assembly from starting. This is not detected by tests because the  AwsS3BlobStoreExtension injects the awsS3TestRule's module which does inject the default option in scope.
  • Loading branch information
jeantil authored Jan 22, 2025
1 parent 7bb73cb commit 853de14
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.apache.james.blob.api.BlobStoreDAO;
import org.apache.james.blob.api.MetricableBlobStore;
import org.apache.james.blob.objectstorage.aws.S3BlobStoreDAO;
import org.apache.james.blob.objectstorage.aws.S3RequestOption;
import org.apache.james.mailrepository.api.MailRepositoryUrlStore;
import org.apache.james.mailrepository.jpa.JPAMailRepositoryUrlStore;
import org.apache.james.modules.RunArgumentsModule;
Expand Down Expand Up @@ -71,6 +72,7 @@ public class Main implements JamesServerMain {
new S3BlobStoreModule(),
new S3BucketModule(),
binder -> {
binder.bind(S3RequestOption.class).toInstance(S3RequestOption.DEFAULT);
binder.bind(BlobStoreDAO.class).to(S3BlobStoreDAO.class)
.in(Scopes.SINGLETON);
binder.bind(BlobStore.class)
Expand Down

0 comments on commit 853de14

Please sign in to comment.