Skip to content

fix: invalidate key_pair cache instead of setting directly#489

Draft
21pages wants to merge 1 commit intorustdesk:mainfrom
21pages:fix_key_pair_set
Draft

fix: invalidate key_pair cache instead of setting directly#489
21pages wants to merge 1 commit intorustdesk:mainfrom
21pages:fix_key_pair_set

Conversation

@21pages
Copy link
Contributor

@21pages 21pages commented Feb 9, 2026

fix #484

Using None instead of Some(key_pair) when updating the cache. If the incoming key_pair is empty, Some(key_pair) would cache the empty value and get_key_pair() would always return it without regenerating or loading.

Marked as draft because it needs to be retested.

  Using None instead of Some(key_pair) when updating the cache.
  If the incoming key_pair is empty, Some would cache the empty value
  and get_key_pair() would always return it without regenerating.

Signed-off-by: 21pages <sunboeasy@gmail.com>
@21pages 21pages marked this pull request as draft February 9, 2026 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant