Skip to content
This repository has been archived by the owner on Apr 24, 2023. It is now read-only.

fix: fix to check the negative cache size #11

Merged
merged 2 commits into from
Feb 8, 2021

Conversation

wetcod
Copy link

@wetcod wetcod commented Feb 8, 2021

Description

  • fix to check the negative cache size
  • add a metric for node db cache size

Motivation and context

node db cache size is int but there is no exception handling for negative value.
I don't replace int with uint because I'm concerned about the side effect of the code being changed.

How has this been tested?

Screenshots (if appropriate):

Checklist:

  • I followed the contributing guidelines.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.

@wetcod wetcod self-assigned this Feb 8, 2021
@wetcod wetcod merged commit 82115f0 into Finschia:develop Feb 8, 2021
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.

3 participants