OdyseeTeam / odysee-api

API server for Odysee
https://odysee.com
MIT License
228 stars 49 forks source link

Create a new GRPC client for each query #325

Closed bigOconstant closed 3 years ago

bigOconstant commented 3 years ago

For issue 301, increase the http timeout for methods txo_spend, txo_list and transaction_list. This will create a new client for each call. GetTimeSpanForJSONRPCMethod will return a timeout duration for a given method. I set txo_spend to 3 hours, txo_list and transaction_list to 10 minutes. All other methods default to the original 2 minutes.

I've tested the app working and jsonrpc methods returning. I don't know of a good way to test a long timeout however.

anbsky commented 3 years ago

👍