Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

perf: only fallback to old feeHistory request on error #1399

Merged
merged 1 commit into from
Jun 22, 2022

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Jun 21, 2022

Motivation

previously feeHistory was evaluated with Result::or so both versions where executed regardless, which is redundant all newer cases.

Solution

only send fallback serialization request if first attempt resulted in an error

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog

@gakonst gakonst merged commit 7472e02 into gakonst:master Jun 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants