Skip to content

Commit

Permalink
Fix Guice Injection error with transferSignalEnabled flag
Browse files Browse the repository at this point in the history
  • Loading branch information
seehamrun committed Sep 11, 2024
1 parent c92b344 commit 2e9d841
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
import com.google.common.base.Strings;
import com.google.inject.Inject;
import com.google.inject.Provider;

import com.google.inject.name.Named;

import java.io.IOException;
import java.util.Collection;
import java.util.Optional;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import com.google.common.util.concurrent.AbstractScheduledService.Scheduler;
import com.google.inject.Provides;
import com.google.inject.Singleton;
import com.google.inject.name.Named;
import java.io.IOException;
import java.io.InputStream;
import java.util.List;
Expand Down Expand Up @@ -313,7 +314,8 @@ public IdempotentImportExecutor getRetryingIdempotentImportExecutor() {
return idempotentImportExecutorExtension.getRetryingIdempotentImportExecutor(context);
}

@Flag
@Provides
@Named("transferSignalEnabled")
public Boolean transferSignalEnabled() {
return context.getSetting("transferSignalEnabled", Boolean.TRUE);
}
Expand Down

0 comments on commit 2e9d841

Please sign in to comment.