Skip to content

Commit

Permalink
#37 CompletableFuture,Async
Browse files Browse the repository at this point in the history
  • Loading branch information
kimsuyeondev committed Jun 24, 2024
1 parent e085354 commit 52d3d6d
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
public class GoodsController {

private final GoodsService goodsService;
private final AsyncService asyncService;
private final SmsService smsService;

@GetMapping(value = "/{goodsNo}")
Expand Down Expand Up @@ -65,7 +64,6 @@ public CompletableFuture<GoodsManagementResponse> registerGoods(@RequestBody @Va

//등록에 성공하면 메세지를 보낸다고 가정
if ("0000".equals(goodsResponseFuture.get().getResultCode())) {

smsService.smsMessage(goodsResponseFuture.get().getGoodsNo()); //Cosmetics-Thread-Pool1
}
return goodsResponseFuture;
Expand Down

0 comments on commit 52d3d6d

Please sign in to comment.