Removed unused code
This commit is contained in:
parent
d5177c158e
commit
5268c3e8c2
@ -12,13 +12,5 @@ public class StockClient {
|
||||
WebClient client = WebClient.create("localhost:9111");
|
||||
RequestHeadersSpec<?> request = client.get().uri("/rtes/stocks/"+stockCode).accept(MediaType.TEXT_EVENT_STREAM);
|
||||
request.retrieve().bodyToFlux(Stock.class).toStream().forEach(System.out::println);
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws InterruptedException {
|
||||
new StockClient().getStockUpdates("GOOGL");
|
||||
|
||||
while(true) {
|
||||
Thread.sleep(1000L);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user