olisystems / BEST-Energy

Integritee off-chain worker and sidechain validateer
Apache License 2.0
2 stars 0 forks source link

get_market_results panics if results are not existing #53

Open j-ti opened 1 year ago

j-ti commented 1 year ago

We will call get_market_results command multiple times until getting actual results.

Panic is good for testing, prototyping and actual unexpected behavior, but cannot be handled well. Instead, we should return an Err