Skip to content

Commit

Permalink
[type:bugfix] fix http sync error
Browse files Browse the repository at this point in the history
  • Loading branch information
Aias00 committed Nov 9, 2024
1 parent a17be3a commit 31c9a5d
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

import org.apache.shenyu.admin.config.properties.HttpSyncProperties;
import org.apache.shenyu.admin.listener.http.HttpLongPollingDataChangedListener;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
Expand All @@ -32,6 +34,8 @@
@EnableConfigurationProperties(HttpSyncProperties.class)
@ConditionalOnProperty(name = "shenyu.sync.http.enabled", havingValue = "true")
public class HttpLongPollingSyncConfiguration {

private static final Logger LOG = LoggerFactory.getLogger(HttpLongPollingSyncConfiguration.class);

/**
* httpLongPollingDataChangedListener.
Expand All @@ -42,6 +46,7 @@ public class HttpLongPollingSyncConfiguration {
@Bean
@ConditionalOnMissingBean(HttpLongPollingDataChangedListener.class)
public HttpLongPollingDataChangedListener httpLongPollingDataChangedListener(final HttpSyncProperties httpSyncProperties) {
LOG.info("support http sync, initing HttpLongPollingDataChangedListener");
return new HttpLongPollingDataChangedListener(httpSyncProperties);
}
}

0 comments on commit 31c9a5d

Please sign in to comment.