Skip to content

Instantly share code, notes, and snippets.

@jchapuis
Created March 7, 2024 11:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jchapuis/f4b4db37fddc880bba262990c99a96ec to your computer and use it in GitHub Desktop.
Save jchapuis/f4b4db37fddc880bba262990c99a96ec to your computer and use it in GitHub Desktop.
Transfer coordinator
transactor.coordinator[TransferID, AccountID, Transfer, TransferFailure](
"transfer",
{ accountID =>
val account = sharding.entityFor(accountID)
new TransferBranch(accountID, account)
},
Some(transferParameters.timeout)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment