Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: mineme0110 <[email protected]>
  • Loading branch information
mineme0110 committed Oct 9, 2023
1 parent 7725ff4 commit 3225023
Showing 1 changed file with 0 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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[
Expand All @@ -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[
Expand All @@ -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] =
Expand Down

0 comments on commit 3225023

Please sign in to comment.