Skip to content

Commit

Permalink
Merge pull request #69 from PizzaPickle/fix/localhost
Browse files Browse the repository at this point in the history
fix: localhost 삭제
  • Loading branch information
OneK-2 authored Sep 11, 2024
2 parents 5120e5c + 913d3e6 commit a8db03b
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ public class MyStrategyService {

@Transactional
public CreateMyStrategyDto.Response createMyStrategy(CreateMyStrategyDto.Request request) {
RestClient restClient = CustomRestClient.connectCommon("/inner/strategy");

// RestClient restClient = CustomRestClient.connectCommon("/inner/strategy");
RestClient restClient = RestClient.builder()
.baseUrl("http://13.125.73.116:8004/api/pickle-common/inner/strategy").build();
RestClientDto.ReadStrategyResponseDto selectedStrategy = restClient.get()
.uri("/{strategyId}", request.getSelectedStrategyId())
.retrieve()
Expand Down Expand Up @@ -106,8 +107,9 @@ private void saveMyStrategyComposition(RestClientDto.ReadStrategyResponseDto sel

@Transactional
public UpdateMyStrategyDto.Response updateMyStrategy(UpdateMyStrategyDto.Request request) {
RestClient restClient = CustomRestClient.connectCommon("/inner/strategy");

// RestClient restClient = CustomRestClient.connectCommon("/inner/strategy");
RestClient restClient = RestClient.builder()
.baseUrl("http://13.125.73.116:8004/api/pickle-common/inner/strategy").build();
RestClientDto.ReadStrategyResponseDto selectedStrategy = restClient.get()
.uri("/{strategyId}", request.getSelectedStrategyId())
.retrieve()
Expand Down

0 comments on commit a8db03b

Please sign in to comment.