mediachain / oldchain-client

[DEPRECATED] old mediachain client experiments
MIT License
4 stars 2 forks source link

add retry_if_missing arg to datastore.get, use in reader api #93

Closed yusefnapora closed 8 years ago

yusefnapora commented 8 years ago

this adds a retry_if_missing arg to RpcDatastore.get that will cause a StatusCode.NOT_FOUND exception to retry with the exponential backoff / retry helper.

It also adds the arg to IpfsDatastore, but it's ignored; I just figured the two datastores should have the same API.

Updates the calls to db.get() in mediachain.reader.api to enable retries.