From 322502389c76c2158b83a51e57c23f2acba9dda5 Mon Sep 17 00:00:00 2001 From: mineme0110 Date: Mon, 9 Oct 2023 12:09:30 +0100 Subject: [PATCH] code cleanup Signed-off-by: mineme0110 --- .../atala/agent/server/PrismAgentApp.scala | 39 ------------------- 1 file changed, 39 deletions(-) diff --git a/prism-agent/service/server/src/main/scala/io/iohk/atala/agent/server/PrismAgentApp.scala b/prism-agent/service/server/src/main/scala/io/iohk/atala/agent/server/PrismAgentApp.scala index 69610541d7..bb9173921e 100644 --- a/prism-agent/service/server/src/main/scala/io/iohk/atala/agent/server/PrismAgentApp.scala +++ b/prism-agent/service/server/src/main/scala/io/iohk/atala/agent/server/PrismAgentApp.scala @@ -57,19 +57,6 @@ object PrismAgentApp { .unit @@ Metric .gauge("issuance_flow_did_com_exchange_job_ms_gauge") .trackDurationWith(_.toMetricsSeconds) - // _ <- ZIO - // .serviceWithZIO[WalletManagementService](_.listWallets().map(_._1)) - // .mapError(_.toThrowable) - // .flatMap { wallets => - // ZIO.foreach(wallets) { wallet => - // BackgroundJobs.issueCredentialDidCommExchanges - // .provideSomeLayer(ZLayer.succeed(WalletAccessContext(wallet.id))) @@ Metric - // .gauge("issuance_flow_did_com_exchange_job_ms_gauge") - // .trackDurationWith(_.toMetricsSeconds) - // } - // } - // .repeat(Schedule.spaced(config.pollux.issueBgJobRecurrenceDelay)) - // .unit } yield () private val presentProofExchangeJob: RIO[ @@ -84,19 +71,6 @@ object PrismAgentApp { .unit @@ Metric .gauge("present_proof_flow_did_com_exchange_job_ms_gauge") .trackDurationWith(_.toMetricsSeconds) - // _ <- ZIO - // .serviceWithZIO[WalletManagementService](_.listWallets().map(_._1)) - // .mapError(_.toThrowable) - // .flatMap { wallets => - // ZIO.foreach(wallets) { wallet => - // BackgroundJobs.presentProofExchanges - // .provideSomeLayer(ZLayer.succeed(WalletAccessContext(wallet.id))) @@ Metric - // .gauge("present_proof_flow_did_com_exchange_job_ms_gauge") - // .trackDurationWith(_.toMetricsSeconds) - // } - // } - // .repeat(Schedule.spaced(config.pollux.presentationBgJobRecurrenceDelay)) - // .unit } yield () private val connectDidCommExchangesJob: RIO[ @@ -111,19 +85,6 @@ object PrismAgentApp { .unit @@ Metric .gauge("connection_flow_did_com_exchange_job_ms_gauge") .trackDurationWith(_.toMetricsSeconds) - // _ <- ZIO - // .serviceWithZIO[WalletManagementService](_.listWallets().map(_._1)) - // .mapError(_.toThrowable) - // .flatMap { wallets => - // ZIO.foreach(wallets) { wallet => - // ConnectBackgroundJobs.didCommExchanges - // .provideSomeLayer(ZLayer.succeed(WalletAccessContext(wallet.id))) @@ Metric - // .gauge("connection_flow_did_com_exchange_job_ms_gauge") - // .trackDurationWith(_.toMetricsSeconds) - // } - // } - // .repeat(Schedule.spaced(config.connect.connectBgJobRecurrenceDelay)) - // .unit } yield () private val syncDIDPublicationStateFromDltJob: URIO[ManagedDIDService & WalletManagementService, Unit] =