@nina-protocol/nina-db 0.0.82 → 0.0.84

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -59,9 +59,6 @@ export default class Release extends Model {
59
59
  const releaseAccount = await promiseRetry(async (retry) => {
60
60
  try {
61
61
  attempts += 1;
62
- if (attempts < 5) {
63
- throw new Error('Failed to fetch release account - attempt:' + attempts);
64
- }
65
62
  const result = await program.account.release.fetch(new anchor.web3.PublicKey(publicKey), 'confirmed');
66
63
  return result;
67
64
  }
@@ -70,7 +67,7 @@ export default class Release extends Model {
70
67
  retry(error);
71
68
  }
72
69
  }, {
73
- retries: 25,
70
+ retries: 50,
74
71
  minTimeout: 500,
75
72
  maxTimeout: 1500,
76
73
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nina-protocol/nina-db",
3
- "version": "0.0.82",
3
+ "version": "0.0.84",
4
4
  "description": "",
5
5
  "source": "src/index.js",
6
6
  "main": "dist/index.js",
@@ -65,12 +65,8 @@ export default class Release extends Model {
65
65
  let attempts = 0;
66
66
  const releaseAccount = await promiseRetry(
67
67
  async (retry) => {
68
-
69
68
  try {
70
69
  attempts += 1
71
- if (attempts < 5) {
72
- throw new Error('Failed to fetch release account - attempt:' + attempts)
73
- }
74
70
  const result = await program.account.release.fetch(new anchor.web3.PublicKey(publicKey), 'confirmed')
75
71
  return result
76
72
  } catch (error) {
@@ -78,7 +74,7 @@ export default class Release extends Model {
78
74
  retry(error)
79
75
  }
80
76
  }, {
81
- retries: 25,
77
+ retries: 50,
82
78
  minTimeout: 500,
83
79
  maxTimeout: 1500,
84
80
  }