openbook-dex / openbook-v2

openbook-v2 monorepo, contains solana program and ts client
Other
164 stars 94 forks source link

feat: add retry logic on rpc calls, remove unnecessary deps, fix warnings #268

Open wiseaidev opened 6 months ago

wiseaidev commented 6 months ago

I haven't tested these changes locally yet, but should work. Let's try it on CI. This PR contains the following changes:

mschneider commented 5 months ago

the retry mechanism is not reactive to error codes: a 429 can be retried, but all other errors should probably be exposed to the user immediately. apart from that i would prefer if the retry was implemented outside the core client library functions, if users want to use their own logic.