Skip to content

Commit

Permalink
Add ContextPropagatingTaskDecorator
Browse files Browse the repository at this point in the history
  • Loading branch information
making committed Aug 13, 2024
1 parent 6c284e4 commit e55c4e5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 32 deletions.
7 changes: 7 additions & 0 deletions src/main/java/am/ik/translation/config/AppConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import org.springframework.boot.web.client.RestClientCustomizer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.task.support.ContextPropagatingTaskDecorator;
import org.springframework.http.HttpHeaders;
import org.springframework.http.client.SimpleClientHttpRequestFactory;
import org.springframework.util.backoff.FixedBackOff;
Expand Down Expand Up @@ -39,4 +40,10 @@ public WebhookVerifierRequestBodyAdvice webhookVerifierRequestBodyAdvice() {
return WebhookVerifierRequestBodyAdvice.githubSha256(this.githubProps.webhookSecret());
}

// https://github.com/spring-projects/spring-boot/issues/34622#issuecomment-2243481536
@Bean
public ContextPropagatingTaskDecorator contextPropagatingTaskDecorator() {
return new ContextPropagatingTaskDecorator();
}

}
32 changes: 0 additions & 32 deletions src/main/java/am/ik/translation/config/AsyncConfig.java

This file was deleted.

0 comments on commit e55c4e5

Please sign in to comment.