Skip to content

Commit 92e6439

Browse files
committed
Rename
1 parent 7af5879 commit 92e6439

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/main/java/com/iexec/worker/feign/client/SmsClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919
public interface SmsClient {
2020

2121
@PostMapping("/untee/secrets")
22-
ResponseEntity<SmsSecretResponse> getUnTeeSecrets(@RequestHeader("Authorization") String workerSignature,
22+
ResponseEntity<SmsSecretResponse> getUnTeeSecrets(@RequestHeader("Authorization") String authorization,
2323
@RequestBody ContributionAuthorization contributionAuth) throws FeignException;
2424

2525
@PostMapping("/tee/sessions")
26-
ResponseEntity<String> createTeeSession(@RequestHeader("Authorization") String workerSignature,
26+
ResponseEntity<String> createTeeSession(@RequestHeader("Authorization") String authorization,
2727
@RequestBody ContributionAuthorization contributionAuth) throws FeignException;
2828

2929
}

src/main/java/com/iexec/worker/sms/SmsService.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ public SmsService(CredentialsService credentialsService, SmsClient smsClient) {
3434
@Retryable(value = FeignException.class)
3535
public Optional<TaskSecrets> fetchTaskSecrets(ContributionAuthorization contributionAuth) {
3636
String chainTaskId = contributionAuth.getChainTaskId();
37-
String workerSignature = getAuthorizationString(contributionAuth);
38-
ResponseEntity<SmsSecretResponse> response = smsClient.getUnTeeSecrets(workerSignature, contributionAuth);
37+
String authorization = getAuthorizationString(contributionAuth);
38+
ResponseEntity<SmsSecretResponse> response = smsClient.getUnTeeSecrets(authorization, contributionAuth);
3939
if (!response.getStatusCode().is2xxSuccessful()) {
4040
return Optional.empty();
4141
}
@@ -103,8 +103,8 @@ public void saveSecrets(String chainTaskId,
103103

104104
@Retryable(value = FeignException.class)
105105
public String createTeeSession(ContributionAuthorization contributionAuth) {
106-
String workerSignature = getAuthorizationString(contributionAuth);
107-
ResponseEntity<String> response = smsClient.createTeeSession(workerSignature, contributionAuth);
106+
String authorization = getAuthorizationString(contributionAuth);
107+
ResponseEntity<String> response = smsClient.createTeeSession(authorization, contributionAuth);
108108
return response.getStatusCode().is2xxSuccessful() ? response.getBody() : "";
109109
}
110110

0 commit comments

Comments
 (0)