🐛 Fix account rewind service using wrong endpoint to call other services

This commit is contained in:
2025-12-25 22:58:52 +08:00
parent 43d89299c3
commit 9e54b61eee

View File

@@ -25,7 +25,7 @@ public class AccountRewindService(
var httpClient = httpClientFactory.CreateClient( var httpClient = httpClientFactory.CreateClient(
$"{nameof(AccountRewindService)}+{CapitalizeFirstLetter(serviceId)}" $"{nameof(AccountRewindService)}+{CapitalizeFirstLetter(serviceId)}"
); );
var channel = GrpcChannel.ForAddress($"http://{serviceId}", new GrpcChannelOptions { HttpClient = httpClient }); var channel = GrpcChannel.ForAddress($"https://_grpc.{serviceId}", new GrpcChannelOptions { HttpClient = httpClient });
return new RewindService.RewindServiceClient(channel); return new RewindService.RewindServiceClient(channel);
} }