File tree Expand file tree Collapse file tree
src/main/java/org/fairdatateam/fairdatapoint Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727import org .springframework .context .annotation .Configuration ;
2828import org .springframework .web .client .RestTemplate ;
2929
30- import java .net .http .HttpClient ;
3130import java .time .Duration ;
3231
3332@ Configuration
@@ -44,12 +43,4 @@ public RestTemplate restTemplate(RestTemplateBuilder restTemplateBuilder) {
4443 .build ();
4544 }
4645
47- @ Bean
48- public HttpClient httpClient () {
49- return HttpClient .newBuilder ()
50- .version (HttpClient .Version .HTTP_2 )
51- .followRedirects (HttpClient .Redirect .ALWAYS )
52- .build ();
53- }
54-
5546}
Original file line number Diff line number Diff line change 5858import org .springframework .security .core .context .SecurityContextHolder ;
5959import org .springframework .stereotype .Service ;
6060
61- import java .net .http .HttpClient ;
6261import java .time .Instant ;
6362import java .util .Collections ;
6463import java .util .List ;
@@ -101,9 +100,6 @@ public class EventService {
101100 @ Autowired
102101 private IndexSettingsService indexSettingsService ;
103102
104- @ Autowired
105- private HttpClient httpClient ;
106-
107103 public Iterable <Event > getEvents (IndexEntry indexEntry ) {
108104 // TODO: make events pagination in the future
109105 return eventRepository .getAllByRelatedTo (indexEntry ,
You can’t perform that action at this time.
0 commit comments