Skip to content

Commit

Permalink
Merge pull request #143 from FigureTechnologies/use_plaintext_blockapi
Browse files Browse the repository at this point in the history
Use plaintext instead of tls
  • Loading branch information
rchaing-figure authored Jun 23, 2023
2 parents b84f39c + 9d3807f commit 09a9513
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/kotlin/tech/figure/aggregate/service/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import tech.figure.aggregator.api.server.Connectors
import tech.figure.aggregator.api.server.GrpcServer
import tech.figure.aggregator.api.service.TransferService
import tech.figure.block.api.client.GRPCConfigOpt
import tech.figure.block.api.client.Protocol.PLAINTEXT
import tech.figure.block.api.client.Protocol.TLS
import tech.figure.block.api.client.withApiKey
import tech.figure.block.api.client.withProtocol
Expand Down Expand Up @@ -148,7 +149,7 @@ fun main(args: Array<String>) {
val blockApiClient = BlockAPIClient(
config.blockApi.host,
config.blockApi.port,
withProtocol(TLS),
withProtocol(PLAINTEXT),
withApiKey(config.blockApi.apiKey),
withManagedChannelConfig(config.blockApi.maxBlockSize)
)
Expand Down

0 comments on commit 09a9513

Please sign in to comment.