Skip to content

Commit

Permalink
Add run with actix to some commands (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
zmanian authored Aug 25, 2021
1 parent cc91239 commit 14d9c31
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion orchestrator/gorc/src/commands/deploy/erc20.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pub struct Erc20 {

impl Runnable for Erc20 {
fn run(&self) {
abscissa_tokio::run(&APP, async {
abscissa_tokio::run_with_actix(&APP, async {
self.deploy().await;
})
.unwrap_or_else(|e| {
Expand Down
4 changes: 2 additions & 2 deletions orchestrator/gorc/src/commands/tx/cosmos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ impl Runnable for SendToEth {
let cosmos_prefix = config.cosmos.prefix.clone();
let cosmso_grpc = config.cosmos.grpc.clone();

abscissa_tokio::run(&APP, async {
abscissa_tokio::run_with_actix(&APP, async {
let connections =
create_rpc_connections(cosmos_prefix, Some(cosmso_grpc), None, TIMEOUT).await;
let contact = connections.contact.unwrap();
Expand Down Expand Up @@ -162,7 +162,7 @@ impl Runnable for Send {
let _to_addr = self.free[1].clone();
let _coin_amount = self.free[2].clone();

abscissa_tokio::run(&APP, async { unimplemented!() }).unwrap_or_else(|e| {
abscissa_tokio::run_with_actix(&APP, async { unimplemented!() }).unwrap_or_else(|e| {
status_err!("executor exited with error: {}", e);
exit(1);
});
Expand Down
2 changes: 1 addition & 1 deletion orchestrator/gorc/src/commands/tx/eth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ impl Runnable for SendToCosmos {
.parse()
.expect("Expected config.gravity.contract to be an Eth ddress");

abscissa_tokio::run(&APP, async {
abscissa_tokio::run_with_actix(&APP, async {
let connections =
create_rpc_connections(cosmos_prefix, Some(cosmso_grpc), Some(eth_rpc), TIMEOUT)
.await;
Expand Down

0 comments on commit 14d9c31

Please sign in to comment.