Skip to content

Commit 5268c3e

Browse files
Removed unused code
1 parent d5177c1 commit 5268c3e

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

‎spring-5-reactive/src/main/java/com/baeldung/reactive/client/StockClient.java‎

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,5 @@ public void getStockUpdates(String stockCode) {
1212
WebClient client = WebClient.create("localhost:9111");
1313
RequestHeadersSpec<?> request = client.get().uri("/rtes/stocks/"+stockCode).accept(MediaType.TEXT_EVENT_STREAM);
1414
request.retrieve().bodyToFlux(Stock.class).toStream().forEach(System.out::println);
15-
}
16-
17-
public static void main(String[] args) throws InterruptedException {
18-
new StockClient().getStockUpdates("GOOGL");
19-
20-
while(true) {
21-
Thread.sleep(1000L);
22-
}
23-
}
15+
}
2416
}

0 commit comments

Comments
 (0)