Skip to content

Commit

Permalink
Merge pull request #2211 from threefoldtech/development_314_retries
Browse files Browse the repository at this point in the history
Fix typo and propagate retries to client
  • Loading branch information
amiraabouhadid authored Feb 20, 2024
2 parents e15bc5d + 05c7e84 commit e7aa5aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/grid_client/src/clients/rmb/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ class RMB {
this.client = rmbClient;
}

async request(destTwinIds: number[], cmd: string, payload: string, expiration = 20, retires = 1) {
async request(destTwinIds: number[], cmd: string, payload: string, expiration = 20, retries = 1) {
let result;
try {
const requestId = await this.client.send(cmd, payload, destTwinIds[0], expiration / 60);
const requestId = await this.client.send(cmd, payload, destTwinIds[0], expiration / 60, retries);
result = await this.client.read(requestId);
} catch (e) {
if (e instanceof BaseError) {
Expand Down

0 comments on commit e7aa5aa

Please sign in to comment.