Skip to content

Commit 1da5967

Browse files
committed
change to concurrentMetadataStore
1 parent 1710d73 commit 1da5967

File tree

1 file changed

+2
-2
lines changed
  • jrcc-access-spring-boot-autoconfigure/src/main/java/ca/bc/gov/open/jrccaccess/autoconfigure/plugins/sftp

1 file changed

+2
-2
lines changed

jrcc-access-spring-boot-autoconfigure/src/main/java/ca/bc/gov/open/jrccaccess/autoconfigure/plugins/sftp/AutoConfiguration.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ public SftpRemoteFileTemplate template() {
9595

9696
@Bean
9797
@InboundChannelAdapter(channel = "sftpChannel", poller = @Poller(cron = "${bcgov.access.input.sftp.cron}", maxMessagesPerPoll = "${bcgov.access.input.sftp.max-message-per-poll}"))
98-
public MessageSource<InputStream> sftpMessageSource(ConcurrentMetadataStore redisMetadataStore) {
98+
public MessageSource<InputStream> sftpMessageSource(ConcurrentMetadataStore concurrentMetadataStore) {
9999
ChainFileListFilter<ChannelSftp.LsEntry> filterChain = new ChainFileListFilter<>();
100100
if (properties.getFilterPattern() != null && !"".equals(properties.getFilterPattern()))
101101
filterChain.addFilter(new SftpRegexPatternFileListFilter(properties.getFilterPattern()));
102-
filterChain.addFilter(new SftpPersistentAcceptOnceFileListFilter(redisMetadataStore, "sftpSource"));
102+
filterChain.addFilter(new SftpPersistentAcceptOnceFileListFilter(concurrentMetadataStore, "sftpSource"));
103103
SftpStreamingMessageSource messageSource = new SftpStreamingMessageSource(template());
104104
messageSource.setRemoteDirectory(properties.getRemoteDirectory());
105105
messageSource.setFilter(filterChain);

0 commit comments

Comments
 (0)