Skip to content

Commit

Permalink
fixed default queue impl should be LocalQueue instead of AWSQueue
Browse files Browse the repository at this point in the history
  • Loading branch information
albogdano committed Nov 24, 2021
1 parent c5e5835 commit 2e086d9
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,7 @@ public class QueueModule extends AbstractModule {
protected void configure() {
String selectedQueue = Config.getConfigParam("q", "");
if (StringUtils.isBlank(selectedQueue)) {
if ("embedded".equals(Config.ENVIRONMENT)) {
bindToDefault();
} else {
bind(Queue.class).to(AWSQueue.class).asEagerSingleton();
}
bindToDefault();
} else {
if ("sqs".equalsIgnoreCase(selectedQueue) ||
AWSQueue.class.getSimpleName().equalsIgnoreCase(selectedQueue)) {
Expand Down

0 comments on commit 2e086d9

Please sign in to comment.