Skip to content

Commit

Permalink
Lambda now properly executes the ZIO program
Browse files Browse the repository at this point in the history
  • Loading branch information
adamnfish committed Dec 19, 2023
1 parent 9701a0b commit 6672c6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Poker Dot
name: Poker Dot Build

on:
push:
Expand Down
4 changes: 2 additions & 2 deletions lambda/src/main/scala/io/adamnfish/pokerdot/Lambda.scala
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import software.amazon.awssdk.http.urlconnection.UrlConnectionHttpClient
import software.amazon.awssdk.regions.Region
import software.amazon.awssdk.services.apigatewaymanagementapi.ApiGatewayManagementApiClient
import software.amazon.awssdk.services.dynamodb.DynamoDbClient
import zio.Unsafe
import zio.{Runtime, Unsafe}

import java.net.URI
import scala.jdk.CollectionConverters._
Expand Down Expand Up @@ -76,7 +76,7 @@ class Lambda {
val appContext = appContextBuilder(playerAddress, awsContext)

Unsafe.unsafe { implicit unsafe =>
zio.Runtime.default.run(
Runtime.default.unsafe.run(
PokerDot.pokerdot(event.getBody, appContext)
).fold(
{ fs =>
Expand Down

0 comments on commit 6672c6d

Please sign in to comment.