Upgrade samples to the latest snapshot
This commit is contained in:
@@ -23,7 +23,7 @@ import reactor.core.publisher.Mono;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.graphql.web.WebGraphQlHandlerInterceptor;
|
||||
import org.springframework.graphql.server.WebGraphQlInterceptor;
|
||||
|
||||
@SpringBootApplication
|
||||
public class SampleApplication {
|
||||
@@ -33,7 +33,7 @@ public class SampleApplication {
|
||||
}
|
||||
|
||||
@Bean
|
||||
public WebGraphQlHandlerInterceptor interceptor() {
|
||||
public WebGraphQlInterceptor interceptor() {
|
||||
return (webInput, interceptorChain) -> {
|
||||
// Switch threads to prove ThreadLocal context propagation works
|
||||
return Mono.delay(Duration.ofMillis(10)).flatMap(aLong -> interceptorChain.next(webInput));
|
||||
|
||||
Reference in New Issue
Block a user