Upgrade samples to the latest snapshot

This commit is contained in:
rstoyanchev
2022-04-11 17:40:17 +01:00
parent 27f485de84
commit e2948e9a36
9 changed files with 2 additions and 2 deletions

View File

@@ -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));