From dcd013bfeef9792956d8640197e59826559ed1bf Mon Sep 17 00:00:00 2001 From: atticusofsparta Date: Thu, 31 Oct 2024 18:41:40 -0600 Subject: [PATCH] fix(api): make create remote process not async --- src/common/process/process.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/common/process/process.ts b/src/common/process/process.ts index 3f0070c..8b7e4e5 100644 --- a/src/common/process/process.ts +++ b/src/common/process/process.ts @@ -52,21 +52,21 @@ export class Process implements AoProcess { return new ProcessReadable(config); } - static async createRemoteProcess({ + static createRemoteProcess({ processId, - cuUrl, - muUrl, - suUrl, + cuUrl = 'http://cu.ao-testnet.xyz', + muUrl = 'http://mu.ao-testnet.xyz', + suUrl = 'http://su.ao-testnet.xyz', signer, logger, }: { processId: string; - cuUrl: string; - muUrl: string; - suUrl: string; + cuUrl?: string; + muUrl?: string; + suUrl?: string; signer?: AoSigner; logger?: Logger; - }): Promise { + }): ProcessReadable | ProcessWritable { return Process.init({ processId, signer,